Support to disable mappings only for insert mode
If disable mappings only in normal mode. let g:surround_no_insert_mappings = 1
This commit is contained in:
parent
2cc734fd99
commit
02199ea008
@ -567,11 +567,13 @@ if !exists("g:surround_no_mappings") || ! g:surround_no_mappings
|
|||||||
nmap ySS <Plug>YSsurround
|
nmap ySS <Plug>YSsurround
|
||||||
xmap S <Plug>VSurround
|
xmap S <Plug>VSurround
|
||||||
xmap gS <Plug>VgSurround
|
xmap gS <Plug>VgSurround
|
||||||
if !hasmapto("<Plug>Isurround","i") && "" == mapcheck("<C-S>","i")
|
if !exists("g:surround_no_insert_mappings") || ! g:surround_no_insert_mappings
|
||||||
imap <C-S> <Plug>Isurround
|
if !hasmapto("<Plug>Isurround","i") && "" == mapcheck("<C-S>","i")
|
||||||
|
imap <C-S> <Plug>Isurround
|
||||||
|
endif
|
||||||
|
imap <C-G>s <Plug>Isurround
|
||||||
|
imap <C-G>S <Plug>ISurround
|
||||||
endif
|
endif
|
||||||
imap <C-G>s <Plug>Isurround
|
|
||||||
imap <C-G>S <Plug>ISurround
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" vim:set ft=vim sw=2 sts=2 et:
|
" vim:set ft=vim sw=2 sts=2 et:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user