I've got a macvim snapshot 64 downloaded from https://github.com/b4winckler/macvim/downloads and exuberant ctags installed via homebrew
:
which ctags
/usr/local/bin/ctags
my tags
variable in vim looks like this:
:echo &tags
/Users/macovsky/code/faces/tmp/tags,./tags,tags,/Users/macovsky/.rbenv/versions/1.9.2-p290/lib/ruby/site_ruby/1.9.1/tags,/Users/macovsky/.rbenv/versions/1.9.2-p290/lib/ruby/site_ruby/1.9.1/x86_64-darwin11.2.0/tags,/Users/macovsky/.rbenv/versions/1.9.2-p290/lib/ruby/site_ruby/tags,/Users/macovsky/.rbenv/versions/1.9.2-p290/lib/ruby/vendor_ruby/1.9.1/tags,/Users/macovsky/.rbenv/versions/1.9.2-p290/lib/ruby/vendor_ruby/1.9.1/x86_64-darwin11.2.0/tags,/Users/macovsky/.rbenv/versions/1.9.2-p290/lib/ruby/vendor_ruby/tags,/Users/macovsky/.rbenv/versions/1.9.2-p290/lib/ruby/1.9.1/tags,/Users/macovsky/.rbenv/versions/1.9.2-p290/lib/ruby/1.9.1/x86_64-darwin11.2.0/tags,/Users/macovsky/code/faces/tags
and I generated the tags file with rails-vim
's :Rtags
command:
file tmp/tags
tmp/tags: Exuberant Ctags tag file text
the problem is that whether I use C-]
or :tag
it all fails with a E426 tag not found
error.
The tag is definitely there:
cat tmp/tags | grep post_image
post_image /Users/macovsky/code/faces/app/helpers/posts_helper.rb /^ def post_image(post, style)$/;" f class:PostsHelper
Any suggestions? Thank you.
Make sure you added a semicolon to your tag paths in .vimrc:
set tags=./tags;,./gems.tags;
There is an explanation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With