Closed GabeIsman closed 6 years ago
Thanks for this awesome tool!
I noticed an oddity just now: in my setup gf correctly opens all sorts of files, for example gf with the cursor on Tag opens the right model.
gf
Tag
However :wincmd f produces E447: Can't find file "tag.find.rb" in path.
:wincmd f
E447: Can't find file "tag.find.rb" in path
Having this work correctly would be handy for bindings like nnoremap gv :vertical wincmd f<cr>.
nnoremap gv :vertical wincmd f<cr>
I was able to work around this with nnoremap gv :vsp <c-r>=findfile(rails#cfile())<cr><cr>
nnoremap gv :vsp <c-r>=findfile(rails#cfile())<cr><cr>
:wincmd is a built-in and can't be extended. You can use <C-W>f.
:wincmd
<C-W>f
Thanks for this awesome tool!
I noticed an oddity just now: in my setup
gf
correctly opens all sorts of files, for examplegf
with the cursor onTag
opens the right model.However
:wincmd f
producesE447: Can't find file "tag.find.rb" in path
.Having this work correctly would be handy for bindings like
nnoremap gv :vertical wincmd f<cr>
.