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

Annoying behavior when used with 'gn' followed by '.'

Open marcomagdy opened this issue 7 years ago • 2 comments

Recently, I came across this article that shows how useful gn can be to replace multiple cursors.

However, when I try to use vim-surround with it, as in ysgn) for example, it only works on the first match. Hitting . to repeat it on the next match fails because the cursor stays at the beginning of the first match.

It would be awesome if an exception could be added to make surround work better with gn

marcomagdy avatar Oct 05 '18 16:10 marcomagdy

https://github.com/tpope/vim-repeat

thornycrackers avatar Oct 10 '18 21:10 thornycrackers

https://github.com/tpope/vim-repeat

Yeah. I do have that installed already.

marcomagdy avatar Oct 10 '18 23:10 marcomagdy