Skip to content

Commit 6f0984a

Browse files
committedOct 6, 2011
Don't clobber v_s map
1 parent 440dc59 commit 6f0984a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎plugin/surround.vim

+3-1
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,9 @@ if !exists("g:surround_no_mappings") || ! g:surround_no_mappings
551551
nmap ySS <Plug>YSsurround
552552
xmap S <Plug>VSurround
553553
xmap gS <Plug>VgSurround
554-
xnoremap <silent> s :<C-U>echoerr 'surround.vim: Visual mode s has been removed in favor of S'<CR>
554+
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
555557
if !hasmapto("<Plug>Isurround","i") && "" == mapcheck("<C-S>","i")
556558
imap <C-S> <Plug>Isurround
557559
endif

0 commit comments

Comments
 (0)