5 ms·
Those mappings aren't doing what you expect, because s and S in visual mode do the same thing. And instead of mapping all the text objects like that and using
by graywh 17y ago
Those mappings aren't doing what you expect, because s and S in visual mode do the same thing. And instead of mapping all the text objects like that and using visual mode, you should just do this instead:
nmap s ys
nmap S yS
- snprbob86 17y agoI tested a number of the mapping, they seem to be working. I'm using surround.vim [1] which changes the behavior of s/S in visual mode. [1] http://www.vim.org/scripts/script.php?script_id=1697 http://www.vim.org/scripts/script.php?script_id=1697