Mercurial > vim
diff runtime/indent/java.vim @ 234:a686fd6c8beb v7.0065
updated for version 7.0065
author | vimboss |
---|---|
date | Mon, 28 Mar 2005 21:02:15 +0000 |
parents | 404aac550f35 |
children | af1e8a1714c2 |
line wrap: on
line diff
--- a/runtime/indent/java.vim +++ b/runtime/indent/java.vim @@ -1,7 +1,7 @@ " Vim indent file " Language: Java " Maintainer: Toby Allsopp <toby.allsopp@peace.com> (resigned) -" Last Change: 2004 Oct 05 +" Last Change: 2005 Mar 28 " Only load this indent file when no other was loaded. if exists("b:did_indent") @@ -10,7 +10,7 @@ endif let b:did_indent = 1 " Indent Java anonymous classes correctly. -setlocal cinoptions& cinoptions+=j1 +setlocal cindent cinoptions& cinoptions+=j1 " The "extends" and "implements" lines start off with the wrong indent. setlocal indentkeys& indentkeys+=0=extends indentkeys+=0=implements @@ -18,6 +18,8 @@ setlocal indentkeys& indentkeys+=0=exten " Set the function to do the work. setlocal indentexpr=GetJavaIndent() +let b:undo_indent = "set cin< cino< indentkeys< indentexpr<" + " Only define the function once. if exists("*GetJavaIndent") finish