dont clobber &cpo

This commit is contained in:
Martin Grenfell
2008-10-01 22:32:03 +13:00
parent ed273e108d
commit d89dbd354a
2 changed files with 14 additions and 3 deletions

View File

@@ -22,6 +22,11 @@ if v:version < 700
finish
endif
let loaded_nerd_tree = 1
"for line continuation - i.e dont want C in &cpo
let s:old_cpo = &cpo
set cpo&vim
"Function: s:initVariable() function {{{2
"This function is used to initialise a given variable to a given value. The
"variable is only initialised if it does not exist prior
@@ -1828,9 +1833,6 @@ function! s:createTreeWin()
endif
" for line continuation
let cpo_save1 = &cpo
set cpo&vim
call s:bindMappings()
setfiletype nerdtree
@@ -3527,4 +3529,8 @@ function! s:upDir(keepState)
endif
endfunction
"reset &cpo back to users setting
let &cpo = s:old_cpo
" vim: set sw=4 sts=4 et fdm=marker: