We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 440dc59 commit 6f0984aCopy full SHA for 6f0984a
plugin/surround.vim
@@ -551,7 +551,9 @@ if !exists("g:surround_no_mappings") || ! g:surround_no_mappings
551
nmap ySS <Plug>YSsurround
552
xmap S <Plug>VSurround
553
xmap gS <Plug>VgSurround
554
- xnoremap <silent> s :<C-U>echoerr 'surround.vim: Visual mode s has been removed in favor of S'<CR>
+ if maparg('s', 'x') ==# ''
555
+ xnoremap <silent> s :<C-U>echoerr 'surround.vim: Visual mode s has been removed in favor of S'<CR>
556
+ endif
557
if !hasmapto("<Plug>Isurround","i") && "" == mapcheck("<C-S>","i")
558
imap <C-S> <Plug>Isurround
559
endif
0 commit comments