Giter Site home page Giter Site logo

slice.vim and localleader about vimified HOT 11 CLOSED

zaiste avatar zaiste commented on August 16, 2024
slice.vim and localleader

from vimified.

Comments (11)

AdrienGiboire avatar AdrienGiboire commented on August 16, 2024

First of all, make sure you satisfy the requirements:

 Vim 7.3+ compiled with Python 2.5+ support.

To know the version of Vim: vim --version | grep VIM
You should have something like:

VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jun 27 2012 14:51:20)

To know if Vim is compiled with Python support: vim --version | grep python
You should have something like:

+path_extra +perl +persistent_undo +postscript +printer +profile +python
-python3 +quickfix +reltime +rightleft +ruby +scrollbind +signs +smartindent

To know which version of Python Vim use, in the opened Vim type:

:py import sys; print (sys.version, sys.executable)

You should get something like:

('2.7.1 (r271:86832, Jul 31 2011, 19:30:53) \n[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)]', '/usr/bin/python')

from vimified.

sharnik avatar sharnik commented on August 16, 2024

The main slice window displays properly. It's just that I can't execute any command. I think the reason is that the localleader key isn't recognised properly.

That's why I ask whether anybody used that.

from vimified.

AdrienGiboire avatar AdrienGiboire commented on August 16, 2024

I'm not using Slice, so I can't really tell you about your issue. I think it could be from a remap conflict or something like that.

Try:

:verbose let maplocalleader

And tell what you got.

from vimified.

AdrienGiboire avatar AdrienGiboire commented on August 16, 2024

So?

from vimified.

sharnik avatar sharnik commented on August 16, 2024

I have some deeper investigation to do. Will report on progress here.

from vimified.

AdrienGiboire avatar AdrienGiboire commented on August 16, 2024

Okay. Let me know what you'll got. I do not use Slice so if you have more information that might help me. At worst, I install Slice and see what I can do.

from vimified.

sharnik avatar sharnik commented on August 16, 2024

When I do :verbose let maplocalleader I get:

maplocalleader \

So it seems that \ is indeed the localleader key.

What I think the problem might be, this key's not being recognized properly. When I push any command key (or a leader key), it gets displayed in the vim window like that: http://7tonlnu.pl/tmp/skitch/vimified-localleader-20120917-165414.jpg

However, that isn't the case with "". When I push (for example) "\d" I only see the "d" being displayed.

Does that make sense?

from vimified.

AdrienGiboire avatar AdrienGiboire commented on August 16, 2024

Actually, Vim do not let \ displayed since Vim does not know any map association with these key.

For example, in your .vimrc file, add the following after the let maplocalleader instruction:

map <localleader>x :echo "Hello X"<cr>

Save, source/restart Vim. Try \x and you will see "Hello X". Actually, you will even be able to see that just typing \ will let \ displayed. That's because Vim know at least one mapping associated to the \ key.

I still didn't try to use slice.vim, so my hypothesis would be that something is wrong with slice.vim when mapping with localleader.

Try to dig into that way and let me know. If you still have nothing I will install slice.vim and try to see by myself.

Cheers!

from vimified.

AdrienGiboire avatar AdrienGiboire commented on August 16, 2024

Up.

from vimified.

AdrienGiboire avatar AdrienGiboire commented on August 16, 2024

Still not feedback? :(

Also, check your vim is compiled with --enable-pythoninterp since it seems Splice do not throw any warning about that but is required.

At last, check :echo &rtp display the /whatever/home/folder/.vim/bundle/Splice.

from vimified.

sharnik avatar sharnik commented on August 16, 2024

Hi,

Sorry for such a late response.

I've just did a clean reinstall of vimified and splice works perfectly well on my machine. Maybe the error earlier was about python support, I don't remember checking it earlier.

So, I'll close the issue as an error on my part. Thanks for all the assistance!

from vimified.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.