Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Pass through existing filenames with gf

  • Loading branch information...
commit 5de92180d9faa0246c05033b9a201bf70eb3ef78 1 parent e682de7
@tpope authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  autoload/rails.vim
View
3  autoload/rails.vim
@@ -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')
Please sign in to comment.
Something went wrong with that request. Please try again.