tools

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.