Created
August 24, 2014 04:57
-
-
Save maeharin/ccc050d51c3d24bdece0 to your computer and use it in GitHub Desktop.
macにctagsインストールして、vimでRailsのソースコード読む ref: http://qiita.com/maeharin/items/9f98c0d63ab764ee21a8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias ctags="`brew --prefix`/bin/ctags" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ brew install ctags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ . ~/.bashrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ctags --langmap=RUBY:.rb --exclude="*.js" --exclude=".git*" -R . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ジャンプしたい箇所にカーソルを当てて | |
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