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

having issue with visual surround

Open Tommyb841 opened this issue 4 years ago • 6 comments

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.

Tommyb841 avatar Apr 11 '20 18:04 Tommyb841

``

	<meta http-equiv="content-type" content="text/html; charset=utf-8">

	<title>testing page</title>
		help me
</head>

Tommyb841 avatar Apr 11 '20 18:04 Tommyb841

when i VS

"help me" it paste what Ihad last copied

Tommyb841 avatar Apr 11 '20 18:04 Tommyb841

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()

pkfm avatar Sep 25 '20 23:09 pkfm

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.

janedenone avatar Oct 13 '22 16:10 janedenone

The s visual mode map was removed 11 years years ago. https://github.com/tpope/vim-surround/commit/6fb16eae21f455eceda94279e84e4fb5d155580a

tpope avatar Oct 13 '22 16:10 tpope

The s visual mode map was removed 11 years years ago. 6fb16ea

Accidentally revealing my problematic update habits :) Thanks!

janedenone avatar Oct 13 '22 17:10 janedenone