diff options
author | Bram Moolenaar <Bram@vim.org> | 2012-08-15 17:43:31 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2012-08-15 17:43:31 +0200 |
commit | 9b4512500adfab4d44e957329d1a89e97e9a3930 (patch) | |
tree | afb71cc9c0ca20c627152976791923513e69afff /runtime/indent | |
parent | dd82d699c8cb3e60b2da968fb40622dc497f71ca (diff) | |
download | vim-git-9b4512500adfab4d44e957329d1a89e97e9a3930.tar.gz |
Update runtime files.
Diffstat (limited to 'runtime/indent')
-rw-r--r-- | runtime/indent/vim.vim | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/runtime/indent/vim.vim b/runtime/indent/vim.vim index a17bae167..8c215733b 100644 --- a/runtime/indent/vim.vim +++ b/runtime/indent/vim.vim @@ -1,7 +1,7 @@ " Vim indent file " Language: Vim script " Maintainer: Bram Moolenaar <Bram@vim.org> -" Last Change: 2012 May 20 +" Last Change: 2012 Aug 02 " Only load this indent file when no other was loaded. if exists("b:did_indent") @@ -22,6 +22,16 @@ let s:keepcpo= &cpo set cpo&vim function GetVimIndent() + let ignorecase_save = &ignorecase + try + let &ignorecase = 0 + return GetVimIndentIntern() + finally + let &ignorecase = ignorecase_save + endtry +endfunc + +function GetVimIndentIntern() " Find a non-blank line above the current line. let lnum = prevnonblank(v:lnum - 1) |