diff options
Diffstat (limited to 'runtime/indent/java.vim')
-rw-r--r-- | runtime/indent/java.vim | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/runtime/indent/java.vim b/runtime/indent/java.vim index 3c48d3e35f..e0aec0faef 100644 --- a/runtime/indent/java.vim +++ b/runtime/indent/java.vim @@ -2,7 +2,7 @@ " Language: Java " Previous Maintainer: Toby Allsopp <toby.allsopp@peace.com> " Current Maintainer: Hong Xu <xuhdev@gmail.com> -" Last Change: 2012 Jan 20 +" Last Change: 2012 May 18 " Version: 1.0 " License: Same as Vim. " Copyright (c) 2012 Hong Xu @@ -29,6 +29,8 @@ let b:undo_indent = "set cin< cino< indentkeys< indentexpr<" if exists("*GetJavaIndent") finish endif +let s:keepcpo= &cpo +set cpo&vim function! SkipJavaBlanksAndComments(startline) let lnum = a:startline @@ -139,4 +141,7 @@ function GetJavaIndent() return theIndent endfunction +let &cpo = s:keepcpo +unlet s:keepcpo + " vi: sw=2 et |