diff options
author | Bram Moolenaar <Bram@vim.org> | 2012-05-18 21:49:28 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2012-05-18 21:49:28 +0200 |
commit | 8e52a593765172de0f4d98a849d6d89d024b971e (patch) | |
tree | 835eaca57a3432e958820b1a994ffa410dd24572 /runtime/indent/zimbu.vim | |
parent | bd1d5608952dd1c61f99f9b2f605610405415622 (diff) | |
download | vim-8e52a593765172de0f4d98a849d6d89d024b971e.zip |
Fix more 'cpo' issues in runtime files.
Diffstat (limited to 'runtime/indent/zimbu.vim')
-rw-r--r-- | runtime/indent/zimbu.vim | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/runtime/indent/zimbu.vim b/runtime/indent/zimbu.vim index a01510ded..8df0eebe6 100644 --- a/runtime/indent/zimbu.vim +++ b/runtime/indent/zimbu.vim @@ -1,7 +1,7 @@ " Vim indent file " Language: Zimbu " Maintainer: Bram Moolenaar <Bram@vim.org> -" Last Change: 2012 May 17 +" Last Change: 2011 Jun 19 " Only load this indent file when no other was loaded. if exists("b:did_indent") @@ -16,13 +16,16 @@ setlocal indentkeys=0{,0},!^F,o,O,0=ELSE,0=ELSEIF,0=CASE,0=DEFAULT,0=FINALLY " We impose recommended defaults: no Tabs, 'shiftwidth' = 2 setlocal sw=2 et -let b:undo_indent = "setl et< ai< indentexpr=" +let b:undo_indent = "setl et< sw< ai< indentkeys< indentexpr=" " Only define the function once. if exists("*GetZimbuIndent") finish endif +let s:cpo_save = &cpo +set cpo&vim + " Come here when loading the script the first time. let s:maxoff = 50 " maximum number of lines to look backwards for () @@ -121,3 +124,5 @@ func GetZimbuIndent(lnum) return plindent endfunc +let &cpo = s:cpo_save +unlet s:cpo_save |