Skip to content
This repository
Browse code

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
  • Loading branch information...
commit 66a0773f6b0ea34f5c664a97a488d11169d0ddbb 1 parent 4eca304
Ari Pollak aripollak authored committed

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. +2 0  autoload/rails.vim
2  autoload/rails.vim
@@ -1334,6 +1334,8 @@ function! s:initOpenURL()
1334 1334 command -bar -nargs=1 OpenURL :!open <args>
1335 1335 elseif has("gui_win32")
1336 1336 command -bar -nargs=1 OpenURL :!start cmd /cstart /b <args>
  1337 + elseif executable("xdg-open")
  1338 + command -bar -nargs=1 OpenURL :!xdg-open <args>
1337 1339 elseif executable("sensible-browser")
1338 1340 command -bar -nargs=1 OpenURL :!sensible-browser <args>
1339 1341 elseif executable('launchy')

0 comments on commit 66a0773

Please sign in to comment.
Something went wrong with that request. Please try again.