Hello,
The attachment is a patch that will not indent the line after '@*' for
java, such as @Override, @Deprecated.
The file header says that the maintainer has resigned, so I did not try
to contact him/her.
If I have done anything wrong, please point it out.
Hong
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
diff -r 0dabc2ce136c runtime/indent/java.vim
--- a/runtime/indent/java.vim Tue Jan 10 22:31:32 2012 +0100
+++ b/runtime/indent/java.vim Tue Jan 17 22:59:27 2012 +0800
@@ -60,6 +60,13 @@
" find start of previous line, in case it was a continuation line
let lnum = SkipJavaBlanksAndComments(v:lnum - 1)
+
+ " if previous line start with '@', we should have the same indent as the
+ " previous one
+ if getline(lnum) =~ '^\s*@\S\+\s*$'
+ return indent(lnum)
+ endif
+
let prev = lnum
while prev > 1
let next_prev = SkipJavaBlanksAndComments(prev - 1)