diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-03-28 21:02:15 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-03-28 21:02:15 +0000 |
commit | b982ca5c882ff0aaee6c32f6be9a80084b774870 (patch) | |
tree | 12f127319e2940df2bf7279e58f16a4401f1a07b /runtime/indent/java.vim | |
parent | 582fd85b02e50b2aba025ff522c04a2293a45985 (diff) | |
download | vim-git-b982ca5c882ff0aaee6c32f6be9a80084b774870.tar.gz |
updated for version 7.0065v7.0065
Diffstat (limited to 'runtime/indent/java.vim')
-rw-r--r-- | runtime/indent/java.vim | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/indent/java.vim b/runtime/indent/java.vim index 311d7086e..facbdbf57 100644 --- 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=extends indentkeys+=0=implements " 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 |