Wednesday, November 28, 2012

Getting "gf" to support custom remote paths similar to "scp://"

I've implemented my own BufReadCmd autocmds to fetch certain remote files, similar to "scp://".

In normal mode, I can put the cursor over "scp://127.0.0.1/foo.txt" and type "gf" and it will correctly use netrw to fetch the file over SSH. But in my case, I see
E447: Can't find file "my_scheme://127.0.0.1/foo.txt" in path

Is there a way I can register my patterns so that I can use "gf" without vim searching my path?

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: