sponsor Vim development Vim logo Vim Book Ad

groovy.vim : syntax file for the groovy programming language

 script karma  Rating 186/113, Downloaded by 10536  Comments, bugs, improvements  Vim wiki

created by
Alessio Pace
 
script type
syntax
 
description
Syntax file for the Groovy programming language. It relies on the java.vim syntax file.
I was inspired by java.vim and ruby.vim syntax definition, so I thank the authors of those scripts.
 
install details
1) copy the file in the (global or user's $HOME/.vim/syntax/) syntax folder

2) add this line to recognize groovy files by filename extension:
  au BufNewFile,BufRead *.groovy  setf groovy

  in the global vim filetype.vim file or inside $HOME/.vim/filetype.vim
  [groovy is still not recognized by vim! :-( ]

3) add this part to recognize by content groovy script (no extension needed :-)
  if did_filetype()
    finish
  endif
  if getline(1) =~ '^#!.*[/\\]groovy\>'
    setf groovy
  endif

  in the global scripts.vim file or in $HOME/.vim/scripts.vim


4) open/write a .groovy file or a groovy script :-)
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
groovy.vim 0.1.9b 2004-04-08 6.0 Alessio Pace groovy's specific classes highlighted separatly from java's (if enabled)
groovy.vim 0.1.9 2004-04-03 6.0 Alessio Pace -scripts does not depend at runtime from java.vim;
-highlight for ${params} in strings
groovy.vim 0.1.7 2004-03-30 6.0 Alessio Pace Attempts to recognize all the groovy methods at: http://groovy.codehaus.org/groovy-jdk.html
groovy.vim 0.1 2004-03-25 6.0 Alessio Pace Initial upload
ip used for rating: 216.73.216.130

Questions about Vim should go to the maillist. Help Uganda.     Vim at Github