arp242 / xdg_open.vim

Run xdg-open from Vim; re-implements netrw's gx.
MIT License
11 stars 4 forks source link
vim

Re-implements netrw's gx command with a call to xdg-open (or a similar tool of your choosing). You can also use gX to always open a path as an URL (so that e.g. example.com/path opens http://example.com/path, rather than a local path).

This is especially useful if you're using dirvish or some other file-manager other than netrw.

Is this fully compatible with netrw?

It should be for most purposes, but feature-for-feature (or bug-for-bug) compatibility was not a goal. Notable changes are:

Can I disable netrw completely?

See :help xdg_open for the full documentation.