diff --git a/plugin/surround.vim b/plugin/surround.vim index e0aac1d..e387157 100644 --- a/plugin/surround.vim +++ b/plugin/surround.vim @@ -567,11 +567,13 @@ if !exists("g:surround_no_mappings") || ! g:surround_no_mappings nmap ySS YSsurround xmap S VSurround xmap gS VgSurround - if !hasmapto("Isurround","i") && "" == mapcheck("","i") - imap Isurround + if !exists("g:surround_no_insert_mappings") || ! g:surround_no_insert_mappings + if !hasmapto("Isurround","i") && "" == mapcheck("","i") + imap Isurround + endif + imap s Isurround + imap S ISurround endif - imap s Isurround - imap S ISurround endif " vim:set ft=vim sw=2 sts=2 et: