justinmk / vim-sneak

The missing motion for Vim :athletic_shoe:
http://www.vim.org/scripts/script.php?script_id=4809
MIT License
3.24k stars 88 forks source link

s/S mappings not working after install (nvim nightly) #278

Closed molleweide closed 3 years ago

molleweide commented 3 years ago

Hi Justin,

After installing s is not being mapped to sneak it seems. Capital S seems to work but not small s. Does this make sense?? I am going to try to trouble shoot more and I'll get back later. Please tell me if this has happended to somebody before or if you want me to try something specific.

I am super excited to try this. I am trying to follow the neovim development and read all the issues that come up. This is so much fun to read the discussions you are having.

gegoune commented 3 years ago

You can try to see if something is overriding the mapping. :verbose map s might shed some light.

molleweide commented 3 years ago

Thanks @gegoune !

the command :verbose map s gives me this output:

x  s             <Plug>Sneak_s
        Last set from ~/.local/nvim/plugins/vim-sneak/plugin/sneak.vim line 403
n  ss          * <C-W>s
        Last set from ~/.dotfiles/nvim/init.vim line 139
Press ENTER or type command to continue

If should say n s <Plug>Sneak_s also right???

gegoune commented 3 years ago

Try removing your mapping from init.vim:139. It might be causing sneak not to create normal mode mapping (docs do mention it afair).

molleweide commented 3 years ago

oh that makes sense actually. I'm stupid for not realizing that!