Skip to content

Commit

Permalink
Use xmap if possible for vgS
Browse files Browse the repository at this point in the history
  • Loading branch information
tpope committed Mar 6, 2010
1 parent a48b3be commit 29af61b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugin/surround.vim
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,11 @@ if !exists("g:surround_no_mappings") || ! g:surround_no_mappings
vmap S <Plug>VSurround
endif
endif
vmap gS <Plug>VgSurround
if exists(":xmap")
xmap gS <Plug>VgSurround
else
vmap gS <Plug>VgSurround
endif
if !hasmapto("<Plug>Isurround","i") && "" == mapcheck("<C-S>","i")
imap <C-S> <Plug>Isurround
endif
Expand Down

0 comments on commit 29af61b

Please sign in to comment.