Skip to content

Instantly share code, notes, and snippets.

@maeharin
Created August 24, 2014 04:57
Show Gist options
  • Save maeharin/ccc050d51c3d24bdece0 to your computer and use it in GitHub Desktop.
Save maeharin/ccc050d51c3d24bdece0 to your computer and use it in GitHub Desktop.
macにctagsインストールして、vimでRailsのソースコード読む ref: http://qiita.com/maeharin/items/9f98c0d63ab764ee21a8
alias ctags="`brew --prefix`/bin/ctags"
$ brew install ctags
$ . ~/.bashrc
$ ctags --langmap=RUBY:.rb --exclude="*.js" --exclude=".git*" -R .
# ジャンプしたい箇所にカーソルを当てて
Ctrl + ]
# 戻る
Ctrl + t
# 該当結果が複数ある場合に、リスト表示
:tjump
# 明示してジャンプ(例:Userモデルにジャンプ)
:tag User
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment