Just installed the surround.vim plugin and some of the commands don't work as expected. I am using this question as an example
This is a lo*ng line and I want to highlight two words
a ys2aw"
should change the above to
This is a "long line" and I want to highlight two words
but for me it changes it to
This is a g and I want to highlight two words
Other times it has no affect at all! I think it has to do with what is in the yanked register.
When I am typing ys
, in the bottom right I can see that it quickly changes to g@
Finally, I am pretty sure no other plugins are interfering as by issuing the verbose map yss
command:
n yss <Plug>Yssurround
Last set from ~/.vim/plugin/surround.vim
n ys <Plug>Ysurround
Last set from ~/.vim/plugin/surround.vim
Does anyone know what is going wrong here?