vim-surround icon indicating copy to clipboard operation
vim-surround copied to clipboard

0v$S

Open graywh opened this issue 12 years ago • 2 comments

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?

graywh avatar Feb 26 '13 15:02 graywh

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.

tpope avatar Feb 26 '13 15:02 tpope

I know this is super old, but vmap $ $h seems to solve it for most cases

ethanmcc avatar Dec 17 '18 21:12 ethanmcc