Fix more 'cpo' issues in runtime files.
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user