Skip to content

Commit

Permalink
Pass through existing filenames with gf
Browse files Browse the repository at this point in the history
  • Loading branch information
tpope committed Feb 18, 2008
1 parent e682de7 commit 5de9218
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions autoload/rails.vim
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1541,6 +1541,9 @@ function! s:findfromview(func,repl)
endfunction endfunction


function! s:RailsFind() function! s:RailsFind()
if filereadable(expand("<cfile>"))
return expand("<cfile>")
endif
" UGH " UGH
let format = s:format('html') let format = s:format('html')
let res = s:findit('\v\s*<require\s*\(=\s*File.dirname\(__FILE__\)\s*\+\s*[:'."'".'"](\f+)>.=',expand('%:h').'/\1') let res = s:findit('\v\s*<require\s*\(=\s*File.dirname\(__FILE__\)\s*\+\s*[:'."'".'"](\f+)>.=',expand('%:h').'/\1')
Expand Down

0 comments on commit 5de9218

Please sign in to comment.