Navigation Menu

Skip to content

Commit

Permalink
set the cpo and restore it at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
claytron committed Oct 19, 2010
1 parent bd8f7c6 commit 86626fe
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions plugin/RevealExtends.vim
Expand Up @@ -7,6 +7,10 @@ if exists('g:loaded_RevealExtends')
finish
endif
let g:loaded_RevealExtends = 1

let s:save_cpo = &cpo
set cpo&vim

function! s:RevealExtends(line1, line2, count, ...)
let s:config_file = expand("~/.buildout/default.cfg")
if !filereadable(s:config_file)
Expand Down Expand Up @@ -44,3 +48,6 @@ endfunction
" command to run the reveal function
" TODO: change this to accept arguments
command! -nargs=0 -range=0 RevealExtends call s:RevealExtends(<line1>, <line2>, <count>, <f-args>)

let &cpo = s:save_cpo
unlet s:save_cpo

0 comments on commit 86626fe

Please sign in to comment.