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

use matchpairs for surround

Open grenzionky opened this issue 5 years ago • 0 comments

i have in my vimrc

set matchpairs+=«:»

it would be nice if lets say im on the word "Hello"

Hello World

and i press ysiw», i want it to become

«Hello» World

but as it currently is, it becomes

»Hello» World

Is there a way to make vim-surround read the list of pairs in matchpairs and add it to the list of surrounding chars that have non-matching sides (i.e. ( ), [ ], and { })

grenzionky avatar Feb 24 '20 06:02 grenzionky