Vim CTags for Ruby projects
" Extracted from my .vimrc
" Create tags for all the installed gems for the current activated Ruby (rbenv and rvm are supported).
" This takes a very long time to execute, that's why I disabled it.
" map <Leader>rt :!ctags --extra=+f --exclude=.git --exclude=log -R * gem environment gemdir
/gems/*<CR><CR>
" This does the same thing but scopes the set of gems declared in your Gemfile
map <silent> <Leader>rt :!bundle list --paths=true | xargs ctags --extra=+f --exclude=.git --exclude=log -R *<CR><CR>
Written by Luca Guidi
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#