vim-surround
vim-surround copied to clipboard
having issue with visual surround
I'm having an issue with this. S is mapped to VSurround. When I try to surround text with a tag it deletes and inserts something else.
``
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>testing page</title>
help me
</head>
when i VS
"help me" it paste what Ihad last copied
works over here. maybe another plugin or map is interfering. check :verbose map
for conflicts and try with this minimal .vimrc
and see if it works as expected. use vim -u <minimal vimrc path>
call plug#begin('~/.vim/plugs')
Plug 'tpope/vim-repeat'
Plug 'tpope/vim-surround'
call plug#end()
I have a very similar problem on a new system. The local configuration (~./vim
and ~/.vimrc
) was transferred unchanged from my main system, but the s
map does not work anymore, exhibiting the behavior Tommy describes. S
does work, however.
For the original system :verbose map
lists mappings for S
and s
(to VSurround), but the new system only has a S
mapping for VSurround, and there is no interfering mapping for s
. I fail to see why the mapping to VSurround is missing.
The s
visual mode map was removed 11 years years ago. https://github.com/tpope/vim-surround/commit/6fb16eae21f455eceda94279e84e4fb5d155580a
The
s
visual mode map was removed 11 years years ago. 6fb16ea
Accidentally revealing my problematic update habits :) Thanks!