mirror of
https://github.com/tpope/vim-surround.git
synced 2025-11-13 13:53:49 -05:00
Use xmap if possible for vgS
This commit is contained in:
@@ -606,7 +606,11 @@ if !exists("g:surround_no_mappings") || ! g:surround_no_mappings
|
|||||||
vmap S <Plug>VSurround
|
vmap S <Plug>VSurround
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
if exists(":xmap")
|
||||||
|
xmap gS <Plug>VgSurround
|
||||||
|
else
|
||||||
vmap gS <Plug>VgSurround
|
vmap gS <Plug>VgSurround
|
||||||
|
endif
|
||||||
if !hasmapto("<Plug>Isurround","i") && "" == mapcheck("<C-S>","i")
|
if !hasmapto("<Plug>Isurround","i") && "" == mapcheck("<C-S>","i")
|
||||||
imap <C-S> <Plug>Isurround
|
imap <C-S> <Plug>Isurround
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user