I use vim-rails and ctags for navigate of methods. For it I run ctags -R * in /home/***/.rvm/gems/ruby***/gems. But in this directory was many folders for one gems just different versions(for example activerecord v. 3.0.7/3.1.3/3.2.2/3.2.3). And when I try go to(ctrl+]) method I get to old version. How I can run ctags only with latest gems version?
I use vim-rails and ctags for navigate of methods. For it I run ctags
Share
You can make bundler show the locations for the gems in the gemfile with
If you pipe this list into ctags I think you will have what you need.
edit:
Summarized in this blogpost:
http://heim.no/VIM/2012/04/19/generate-ctags-for-all-bundled-gems-in-a-ruby-project/