Ad blocker interference detected!
Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers
Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.
created 2004 · complexity intermediate · author Xiangjiang Ma · version 6.0
gf work for a URL, say,
file:///C:/myfile.txt, I have the following in my vimrc on Windows:
au BufReadCmd file:///* exe "bd!|edit ".substitute(expand("<afile>"),"file:/*","","")
How about extending it for
For network file like http:// ftp:// etc, I guess it is better to use netrw plugin.
- Handle escaped characters like %20 for spaces.
--Fritzophrenic 16:12, January 6, 2010 (UTC)