Use xmap if possible for vgS
This commit is contained in:
parent
a48b3be6cb
commit
29af61b9b4
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user