On Sun, May 24, 2009 at 09:53:41AM +1000, Brad wrote:
>
> Hi. I'm using vim to edit java programs, but one aspect of the
> automatic indenting is driving me crazy (it's all my fault, though,
> as I don't subscribe (in this case) with the accepted standard).
>
> Rather than have the closing brace of a block line up with the
> beginning of the statement which started the block, like this:
>
> void blah() {
> if (boolean) {
> stuff;
> }
> }
>
> I prefer the closing brace to be indented one step further
> to the right, lining up with the body of the block:
>
> void blah() {
> if (boolean) {
> stuff;
> }
> }
> Vim is driving me crazy by automatically left-shifting the closing
> brace from where I want it to be.
>
> I've tried various options, reading up on the various settings, but
> setting cindent values and the like doesn't seem to have any
> effect at all. Is there a whole different set of options for java
> syntax?
>
> Could someone please help me out, or tell me where to look?
Sorry, I don't know the exact solution. But you may want to modify
$VIMRUNTIME/indent/java.vim.
That file should be picked up when "filetype indent on" is set in
vimrc.
-Arun
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---