3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

LaravelをVimで開発してて、マジックメソッドの定義元にタグジャンプしたい時

Last updated at Posted at 2017-12-17

恥ずかしながら、 ctags の設定ちゃんとしてませんでした。情弱でした。

下記の設定を ~/.ctags に書いておきます。

~/.ctags
--regex-php=/get([a-z|A-Z|0-9]+)Attribute/\1/
--regex-php=/scope([a-z|A-Z|0-9]+)/\1/

これで ctags を打てば、Vimの C-] でLaravelのマジックメソッドである getHogeAttributescopeOfHoge に飛べるようになります。

かなり快適になりそう。

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?