Skip to content

Instantly share code, notes, and snippets.

@rosenfeld
Created March 21, 2012 00:18
Show Gist options
  • Save rosenfeld/2142910 to your computer and use it in GitHub Desktop.
Save rosenfeld/2142910 to your computer and use it in GitHub Desktop.
Grails ctags/Vim support (~/.ctags)
--langdef=groovy
--langmap=groovy:.groovy
--regex-groovy=/^[ \t]*[(private|public|protected) ( \t)]*def[ \t]+([A-Za-z0-9_]+)[ \t]*\(/\1/f,function,functions/
--regex-groovy=/^[ \t]*private def[ \t]+([A-Za-z0-9_]+)[ \t]*/\1/v,private,private variables/
--regex-groovy=/^[ \t]*public def[ \t]+([A-Za-z0-9_]+)[ \t]*/\1/u,public,public variables/
--regex-groovy=/^[ \t]*[abstract ( \t)]*[(private|public) ( \t)]*class[ \t]+([A-Za-z0-9_]+)[ \t]*/\1/c,class,classes/
--regex-groovy=/^[ \t]*[abstract ( \t)]*[(private|public) ( \t)]*enum[ \t]+([A-Za-z0-9_]+)[ \t]*/\1/c,class,classes/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment