Fix more 'cpo' issues in runtime files.

This commit is contained in:
Bram Moolenaar
2012-05-18 21:49:28 +02:00
parent bd1d560895
commit 8e52a59376
25 changed files with 122 additions and 70 deletions

View File

@ -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