Skip to content

Commit 66a0773

Browse files
aripollaktpope
authored andcommitted
Add xdg-open support to OpenURL
* This is mostly standard on Linux-based desktop environments and respects users' browser settings in their desktop environment, unlike sensible-browser; but still allow falling back to sensible-browser
1 parent 4eca304 commit 66a0773

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

autoload/rails.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1334,6 +1334,8 @@ function! s:initOpenURL()
13341334
command -bar -nargs=1 OpenURL :!open <args>
13351335
elseif has("gui_win32")
13361336
command -bar -nargs=1 OpenURL :!start cmd /cstart /b <args>
1337+
elseif executable("xdg-open")
1338+
command -bar -nargs=1 OpenURL :!xdg-open <args>
13371339
elseif executable("sensible-browser")
13381340
command -bar -nargs=1 OpenURL :!sensible-browser <args>
13391341
elseif executable('launchy')

0 commit comments

Comments
 (0)