Last Updated: February 25, 2016
·
2.549K
· jodosha

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>