PHP5とvimとctags

symfonyのたくさんあるメソッド名を入力時に補完したい!と思いctagsをいじる。

ctags -f symfony.tags `find /usr/share/pear/symfony/ -name '*.php'`

vimの方の設定やctagsのオプションは以下のページを参照。
Vim で PHP 関数の辞書を作成する方法についてのメモ

ところが補完したいと思った肝心の関数名addDescendingOrderByColumnがtagsのファイル内に見当たらず。

入っていたctagsは5.5.4だったのですが、最新版が5.6だったのでそちらをインストール。PHP5用のパッチもあるようなのでついでに。手順はこちらを参照。
Vim, CTAGS and PHP 5

これで無事addDescendingOrderByColumnもtagsに入り、補完できるようになりました。ただ、結局のところメソッドの名前がだらだらとリストになって出るだけなのでVisualStudio2005ほどの強力さはないです。

This entry was posted in いじる. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Page optimized by WP Minify WordPress Plugin