From 2fe6550913bcae65e54dcb6b0586b45c2fe25037 Mon Sep 17 00:00:00 2001 From: Abhijit Dasgupta Date: Thu, 30 Jul 2015 12:29:06 -0400 Subject: [PATCH] Updated osx.vim to ensure proper working directory Changed line 18 so that R opens with the working directory being the current working directory on Mac OSX and not the home directory. --- r-plugin/osx.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r-plugin/osx.vim b/r-plugin/osx.vim index 33adee6..287e61d 100644 --- a/r-plugin/osx.vim +++ b/r-plugin/osx.vim @@ -15,7 +15,7 @@ function StartR_OSX() " https://stat.ethz.ch/pipermail/r-sig-mac/2013-February/009978.html call RWarningMsg('R.app does not support command line arguments. To pass "' . b:rplugin_r_args . '" to R, you must run it in a console. Set "vimrplugin_applescript = 0"') endif - let rlog = system("open " . rcmd) + let rlog = system("open -a " . rcmd . " .") if v:shell_error call RWarningMsg(rlog) endif