[R] Command-line editing re-visited.
Peter Dalgaard BSA
p.dalgaard at biostat.ku.dk
Fri Sep 7 18:28:59 CEST 2001
Rolf Turner <rolf at math.unb.ca> writes:
> (a) Now my ``m'' key won't work in R!!! When I press ``m'' the machine
> just beeps. All other keys seem to work O.K. What's going on and
> how do I fix it?
> (The ``m'' key is only recalcitrant in R; if I quit R and go back
> to the Unix shell, ``m'' works fine.)
Beats me... What happens if you precede it with ^V ?
> Well, to answer Prof. Vogels' question, I was just following the
> instructions in ``An Introduction to R'' by Venables and Smith, et
> al. They ***mention*** that command line editing can be made to work
> with vi syntax, but they don't say ***how***. (At least I couldn't
> find the ``how''; mebbe I'm just blind.)
> 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.
hit ESC then Ctr-j or put the command "vi-editing-mode" in your
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
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