[R] Command-line editing re-visited.
tov at ece.cmu.edu
Fri Sep 7 21:08:38 CEST 2001
Prof Brian D Ripley <ripley at stats.ox.ac.uk> writes:
> A couple of small points.
> On Fri, 7 Sep 2001, Rolf Turner wrote:
> > (b) Thomas Vogels suggested
> > > Once you fire up the newly built R, you can verify that the readline
> > > library was picked up correctly using the capabilities function:
> > >
> > > R> capabilities("cledit")
> > > cledit
> > > TRUE
> > When I did
> > > capabilities("cledit")
> > I got
> > logical(0)
> > The help on capabilities evinced no reference to ``cledit''.
> > Is something missing here?
> You need 1.3.1 for this.
(...which I silently assumed Rolf has since he's compiling R himself...)
> > So, I now come to my QUESTION: How ***do*** you persuade the R
> > command-line editor to use vi syntax? Ideally I would like to be
> > able to put something into an ``init'' file (.Renviron???) so that
> > I always get vi syntax when I fire up R. Failing that, something
> > that I can put into a .First() function.
> Try man readline:
> You want something like `set keymap vi-insert' in your .inputrc, I think.
Rolf: The alternative is the line `set editing-mode vi' in your
R developers: According to the readline manual, you should be able to
set the editing-mode (or any other option) depending on the
application that uses the readline library. So the following should
set editing-mode vi
... but doesn't. (The same construct works for bash with `$if bash'...)
Does R set its application name to something else (or none at all)?
mailto:tov at ece.cmu.edu (Tom Vogels) Tel: (412) 268-6638 FAX: -3204
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
More information about the R-help