Skip to content

Commit 8b514fc

Browse files
committed
Use :Browse to open URL if available
I don't know of a browse, but if I ever make a browser interface plugin, you better believe it'll be part of it.
1 parent 5470a49 commit 8b514fc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

autoload/rails.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1426,7 +1426,9 @@ call s:add_methods('app', ['rake_command'])
14261426

14271427
function! s:initOpenURL()
14281428
if !exists(":OpenURL") == 2
1429-
if has("gui_mac") || has("gui_macvim") || exists("$SECURITYSESSIONID")
1429+
if exists(":Browse") == 2
1430+
command -bar -nargs=1 OpenURL :Browse <args>
1431+
elseif has("gui_mac") || has("gui_macvim") || exists("$SECURITYSESSIONID")
14301432
command -bar -nargs=1 OpenURL :!open <args>
14311433
elseif has("gui_win32")
14321434
command -bar -nargs=1 OpenURL :!start cmd /cstart /b <args>

0 commit comments

Comments
 (0)