From 29af61b9b4d7a269278e85d70a89b897f8b7a5e8 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Fri, 5 Mar 2010 19:57:17 -0500 Subject: [PATCH] Use xmap if possible for vgS --- plugin/surround.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugin/surround.vim b/plugin/surround.vim index 3c9b768..756a156 100644 --- a/plugin/surround.vim +++ b/plugin/surround.vim @@ -606,7 +606,11 @@ if !exists("g:surround_no_mappings") || ! g:surround_no_mappings vmap S VSurround endif endif - vmap gS VgSurround + if exists(":xmap") + xmap gS VgSurround + else + vmap gS VgSurround + endif if !hasmapto("Isurround","i") && "" == mapcheck("","i") imap Isurround endif