From 6f0984a5ca1430047fe760fc680c6cf98ae94b01 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 6 Oct 2011 18:15:49 -0400 Subject: [PATCH] Don't clobber v_s map --- plugin/surround.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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