Skip to content

comand line options with editor call

2 messages · Ulf Martin, Brian Ripley

#
Hi R users!

Is there a way to call the editor with command line options?
I.e. I want to use Vim and set it automatically in R mode when it is 
started.
This requires something like

   vim -c "set syn=r"

as the start command.
Any ideas?

I am using R 1.5.1 under Win 2000.

Thanks in advance!
--
Ulf Martin
ulf.martin at gmx.net

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
On Sun, 11 Aug 2002, Ulf Martin wrote:

            
Not possible on Windows.  The nub of the problem is that commands can
contain spaces, so there is no way to parse something like that.

options(editor='vim -c "set syn=r"')
does work on Linux, which assumes file paths do not contain spaces (even
though they can do so).