Toby Allsopp wrote the Java indent file, but he stopped maintaining it quite a while ago.
There are a few known problems, I hope that someone who uses Java can fix these: 1. When defining an anonymous class you have code inside (). The value of 'cindent' is completely wrong then. 2. Detection of comments is unreliable. Any line starting with a star is seen as a comment. Using synID() should work much better. Volunteer? -- >From "know your smileys": :-D Big smile /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://www.ICCF.nl ///