Here's the output from the commands that you had me run:
autoindent
Last set from ~/.vimrc
nocopyindent
nocindent
cinoptions=
indentexpr=GetVimIndent()
Last set from /Applications/MacVim.app/Contents/Resources/vim/runtime/
indent/vim.vim
indentkeys=0{,0},:,0#,!^F,o,O,e,=end,=else,=cat,=fina,=END,0\
Last set from /Applications/MacVim.app/Contents/Resources/vim/runtime/
indent/vim.vim
Thanks for your help,
--Nate
On Oct 17, 7:44 pm, Tony Mechelynck <[EMAIL PROTECTED]>
wrote:
> On 18/10/08 02:14, Nate wrote:
>
>
>
> > Hello,
>
> > I have a script that's written in the Groovy language, and the
> > indenting seems to be buggy.
>
> > The groovy.vim file that I'm using is 4 years old, and hasn't had any
> > updates to it since then.
>
> > Here's the problem:
>
> > I have:
>
> > #!/bin/env groovy
> > class Foo {
> > def bar() {
> > println "Hello"
> > println "World"
> > }
> > }
>
> > If I use gg=G, then I wind up with the second println being indented
> > differently than the first println, like this:
>
> > #!/bin/env groovy
> > class Foo {
> > def bar() {
> > println "Hello"
> > println "World"
> > }
> > }
>
> > Can anyone help me figure out what is causing this? I'm willing to
> > learn a bit about syntax highlighting / indenting in Vim. It appears
> > that the groovy.vim syntax file copies much of its functionality from
> > the java.vim and perl.vim syntax files, but I'm lost when it comes to
> > finding the reason for the odd indenting.
>
> > Thanks,
> > --Nate
>
> In the runtime files distributed with Vim, I see a syntax/groovy.vim
> (for syntax highlighting) but no indent/groovy.vim (for indenting) and
> no ftplugin/groovy.vim (for miscellaneous settings), so I suspect your
> "strange" indenting is due to whatever your vimrc sets for indenting the
> files which have no specific filetype-specific indent script.
>
> What does Vim answer (in a Groovy file) to
>
> :verbose set ai? si? cin? cino? inde? indk?
>
> ?
>
> Best regards,
> Tony.
> --
> "The porcupine with the sharpest quills gets stuck on a tree more
> often."
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---