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