X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vimrc;h=bc126c8e63726739a3a235acf91c3810f4da7f76;hb=4f34459eb6428f842c2fb1c546f571fa6911fd2c;hp=83ad31581554ef4fd25b2e1e0017344645303abe;hpb=74ecb7cab27c7f087a0cb0c75de57becb0d61a89;p=config%2Fdotfiles.git diff --git a/vimrc b/vimrc index 83ad315..bc126c8 100644 --- a/vimrc +++ b/vimrc @@ -641,8 +641,11 @@ if has('autocmd') " Don't ignore case while in insert mode, but ignore case in all other modes. " This causes / to honor the case and thus only complete matching " capitalization. But while searching (/) 'ignorecase' is used. - autocmd InsertEnter * set noignorecase - autocmd InsertLeave * set ignorecase +" InsertEnter/InsertLeave doesn't exist in older Vims. + if exists('##InsertEnter') && exists('##InsertLeave') + autocmd InsertEnter * set noignorecase + autocmd InsertLeave * set ignorecase + endif " AFTER/FTPLUGIN AUTO COMMANDS