diff --git a/plugin/surround.vim b/plugin/surround.vim index 383e45e..a09df31 100644 --- a/plugin/surround.vim +++ b/plugin/surround.vim @@ -542,25 +542,16 @@ inoremap Isurround =insert() inoremap ISurround =insert(1) if !exists("g:surround_no_mappings") || ! g:surround_no_mappings - nmap ds Dsurround - nmap cs Csurround - nmap ys Ysurround - nmap yS YSurround - nmap yss Yssurround - nmap ySs YSsurround - nmap ySS YSsurround - if !hasmapto("VSurround","v") - if exists(":xmap") - xmap S VSurround - else - vmap S VSurround - endif - endif - if exists(":xmap") - xmap gS VgSurround - else - vmap gS VgSurround - endif + nmap ds Dsurround + nmap cs Csurround + nmap ys Ysurround + nmap yS YSurround + nmap yss Yssurround + nmap ySs YSsurround + nmap ySS YSsurround + xmap S VSurround + xmap gS VgSurround + xnoremap s :echoerr 'surround.vim: Visual mode s has been removed in favor of S' if !hasmapto("Isurround","i") && "" == mapcheck("","i") imap Isurround endif