Skip to content

Instantly share code, notes, and snippets.

@prasoon2211
Created January 18, 2015 13:48
Show Gist options
  • Save prasoon2211/3de1934c01c792e54941 to your computer and use it in GitHub Desktop.
Save prasoon2211/3de1934c01c792e54941 to your computer and use it in GitHub Desktop.
PHP vim ctags
#!/bin/bash
cd /path/to/framework/library
exec ctags-exuberant -f ~/.vim/mytags/framework \
-h \".php\" -R \
--exclude=\"\.svn\" \
--totals=yes \
--tag-relative=yes \
--PHP-kinds=+cf \
--regex-PHP='/abstract class ([^ ]*)/\1/c/' \
--regex-PHP='/interface ([^ ]*)/\1/c/' \
--regex-PHP='/(public |static |abstract |protected |private )+function ([^ (]*)/\2/f/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment