From f0a9b94b07ddeedeff093aed7fcea13e492ba948 Mon Sep 17 00:00:00 2001 From: James Conroy-Finn Date: Fri, 26 Nov 2010 05:35:21 -0800 Subject: [PATCH] Use default browser on OS X The open command will open URLs using the default browser, which is typically the preferred behaviour. No need to use `open -a application-identifier`. --- plugin/apidock.vim | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugin/apidock.vim b/plugin/apidock.vim index a1e7959..2323e0a 100644 --- a/plugin/apidock.vim +++ b/plugin/apidock.vim @@ -1,5 +1,8 @@ -let g:browser = 'firefox -new-tab ' -" On OSX - let g:browser = 'open -a /Applications/Firefox.app' +if has('mac') + let g:browser = 'open ' +else + let g:browser = 'firefox -new-tab ' +endif " Open the Ruby ApiDock page for the word under cursor, in a new Firefox tab function! OpenRubyDoc(keyword)