Warn about removed "s" mapping

This commit is contained in:
Tim Pope
2011-09-10 19:25:18 -04:00
parent c9120390d8
commit f6c9d3beb2

View File

@@ -549,18 +549,9 @@ if !exists("g:surround_no_mappings") || ! g:surround_no_mappings
nmap yss <Plug>Yssurround nmap yss <Plug>Yssurround
nmap ySs <Plug>YSsurround nmap ySs <Plug>YSsurround
nmap ySS <Plug>YSsurround nmap ySS <Plug>YSsurround
if !hasmapto("<Plug>VSurround","v")
if exists(":xmap")
xmap S <Plug>VSurround xmap S <Plug>VSurround
else
vmap S <Plug>VSurround
endif
endif
if exists(":xmap")
xmap gS <Plug>VgSurround xmap gS <Plug>VgSurround
else xnoremap <silent> s :<C-U>echoerr 'surround.vim: Visual mode s has been removed in favor of S'<CR>
vmap gS <Plug>VgSurround
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