justinmk / vim-sneak

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

label-mode works with MacVim but not terminal vim #209

Closed sarkologist closed 7 years ago

sarkologist commented 7 years ago

With let g:sneak#label = 1 hitting s does use label-mode in MacVim (8.0.1175) but not in terminal vim.

By terminal vim I mean

$ ls -al $(which vim)
lrwxr-xr-x  1 sark  admin  30  7 Oct 14:46 /usr/local/bin/vim -> ../Cellar/vim/8.0.1175/bin/vim

If I force nmap s <Plug>SneakLabel_s, then it does seem to use label-mode, but then the colors are such that I cannot see the labels, or even the original text!

This doesn't seem to be a problem with my themes as I get the same behaviour when I switch them.

justinmk commented 7 years ago

Sounds like a Vim regression. Does it happen with older versions?

sarkologist commented 7 years ago

Looks like you are correct. With brew install vim@7.4 it works fine.

sarkologist commented 7 years ago

Sorry I may have been confused there.

When it did not work, I had:

$ vim --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Apr  4 2017 18:14:54)
Included patches: 1-898, 8056
Compiled by root@apple.com
...

Now it works with:

$ vim --version
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Oct  5 2017 19:19:02)
MacOS X (unix) version
Included patches: 1-1175
Compiled by Homebrew
...

Please feel free to close this issue if you don't consider this a problem (it works for me now, and I am not an expert in these matters). Thanks!