tpope / vim-rails

rails.vim: Ruby on Rails power tools
http://www.vim.org/scripts/script.php?script_id=1567
4.1k stars 383 forks source link

gf fails on a $global_variable #498

Closed davidmathers closed 6 years ago

davidmathers commented 6 years ago

Typing gf on variable $my_redis produced error E345: Can't find file "my_redi.rb" in path

jianzhangbjz commented 6 years ago

I encounter a similar problem, just like E345: Can't find file "opts_array_process" in path, but the opts_array_process is a method defined in another ruby file. How to resolve that?

tpope commented 6 years ago

gf doesn't work on methods. Look into ctags.

Original issue is a nonstandard use case but probably still worth fixing.