summaryrefslogtreecommitdiffstats
path: root/runtime/indent/vim.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-08-15 17:43:31 +0200
committerBram Moolenaar <Bram@vim.org>2012-08-15 17:43:31 +0200
commit9b4512500adfab4d44e957329d1a89e97e9a3930 (patch)
treeafb71cc9c0ca20c627152976791923513e69afff /runtime/indent/vim.vim
parentdd82d699c8cb3e60b2da968fb40622dc497f71ca (diff)
Update runtime files.
Diffstat (limited to 'runtime/indent/vim.vim')
-rw-r--r--runtime/indent/vim.vim12
1 files changed, 11 insertions, 1 deletions
diff --git a/runtime/indent/vim.vim b/runtime/indent/vim.vim
index a17bae1674..8c215733b3 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)