diff --git a/plugin/surround.vim b/plugin/surround.vim index a09df31..71da7a1 100644 --- a/plugin/surround.vim +++ b/plugin/surround.vim @@ -551,7 +551,9 @@ if !exists("g:surround_no_mappings") || ! g:surround_no_mappings 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 maparg('s', 'x') ==# '' + xnoremap s :echoerr 'surround.vim: Visual mode s has been removed in favor of S' + endif if !hasmapto("Isurround","i") && "" == mapcheck("","i") imap Isurround endif