groovy.vim : syntax file for the groovy programming language
script karma |
Rating 186/113,
Downloaded by 10291 |
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 :-)
|
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 18.97.14.80
|