vim-surround
vim-surround copied to clipboard
0v$S
Not sure if this is related to #19 or not, but here's what I just discovered.
foo
bar
2G0v$S'
'bar'foo
It behaves differently with another line in the buffer.
foo
bar
baz
foo
'bar
'baz
Is having the closing delimiter on the next line intended with the cursor in visual mode (v) on the EOL?
The second behavior makes sense. Pressing $
in visual mode puts the cursor beyond the new line.
The first is a bug. Related to that other bug we've been trying to squash, I'd wager.
I know this is super old, but vmap $ $h
seems to solve it for most cases