Suggestion

13 views
Skip to first unread message

Axel

unread,
Aug 12, 2011, 4:05:06 AM8/12/11
to vim...@googlegroups.com
How about supporting the file://[/] syntax - for local files displayed in a Web browser? This would let us allow to use Gvim as an editor for e.g. Firefox out of the box (right now I'm using a wrapper program for this purpose).

Axel

Marc Weber

unread,
Aug 12, 2011, 7:58:55 AM8/12/11
to vim_dev
Excerpts from Axel's message of Fri Aug 12 10:05:06 +0200 2011:

> How about supporting the file://[/] syntax - for local files displayed in a

You can already do so. You can use autocommands.
Read this minimal code to get an idea:
https://github.com/MarcWeber/vim-addon-views
I'm using it to view git diff, ...

The important lines are:

augroup VIM_PLUGIN_VIEWS
autocmd BufReadCmd vim_view_*://* call views#FillContents()
augroup end

Well known plugins like netrw also use this.

Marc Weber

Axel

unread,
Aug 13, 2011, 8:55:28 AM8/13/11
to vim...@googlegroups.com
Hi Marc,

thanks for the answer. Will see if can make it work for me.

Axel
Reply all
Reply to author
Forward
0 new messages