Using Exuberant Ctags for Drupal

I use vim as main editor when writing code, and to help quick lookup for functions in other files I generally use exuberant-ctags (ctags for short). For Drupal by default it doesn't work, because it uses .module as extension for the files, so index the directory using the following command:

ctags --langmap=php:.module.inc -R includes/* modules/*

Now using g] in command mode will help us find the functions/constants we need.

Comments

Don’t forget /sites/all/* if

Don’t forget /sites/all/* if you also want to browse code in modules and template.php!

Post new comment

The content of this field is kept private and will not be shown publicly.