Permalink
Browse files

Pass through existing filenames with gf

  • Loading branch information...
1 parent e682de7 commit 5de92180d9faa0246c05033b9a201bf70eb3ef78 @tpope committed Feb 18, 2008
Showing with 3 additions and 0 deletions.
  1. +3 −0 autoload/rails.vim
View
@@ -1541,6 +1541,9 @@ function! s:findfromview(func,repl)
endfunction
function! s:RailsFind()
+ if filereadable(expand("<cfile>"))
+ return expand("<cfile>")
+ endif
" UGH
let format = s:format('html')
let res = s:findit('\v\s*<require\s*\(=\s*File.dirname\(__FILE__\)\s*\+\s*[:'."'".'"](\f+)>.=',expand('%:h').'/\1')

0 comments on commit 5de9218

Please sign in to comment.