Don't clobber v_s map

This commit is contained in:
Tim Pope 2011-10-06 18:15:49 -04:00
parent 440dc59614
commit 6f0984a5ca

View File

@ -551,7 +551,9 @@ if !exists("g:surround_no_mappings") || ! g:surround_no_mappings
nmap ySS <Plug>YSsurround nmap ySS <Plug>YSsurround
xmap S <Plug>VSurround xmap S <Plug>VSurround
xmap gS <Plug>VgSurround xmap gS <Plug>VgSurround
xnoremap <silent> s :<C-U>echoerr 'surround.vim: Visual mode s has been removed in favor of S'<CR> if maparg('s', 'x') ==# ''
xnoremap <silent> s :<C-U>echoerr 'surround.vim: Visual mode s has been removed in favor of S'<CR>
endif
if !hasmapto("<Plug>Isurround","i") && "" == mapcheck("<C-S>","i") if !hasmapto("<Plug>Isurround","i") && "" == mapcheck("<C-S>","i")
imap <C-S> <Plug>Isurround imap <C-S> <Plug>Isurround
endif endif