[R] Is there a 'vi' mode in R?

Deepayan Sarkar deepayan.sarkar at gmail.com
Fri Aug 7 20:05:52 CEST 2009


On 8/6/09, Peng Yu <pengyu.ut at gmail.com> wrote:
> Hi,
>
>  I'm wondering if R provide a vi mode in the command line just like
>  other shells such as bash do. Can somebody let me know?

I've never used vi-mode, but vi mode in bash (at least) is provided by
the readline library, and R uses the same library. If you set up your
bash to use vi-mode, e.g., by including

set editing-mode vi

in your ~/.inputrc, and then start R, you should get into vi-mode.
Alternatively, if you start up R in emacs editing mode, M-C-j will
change to vi mode.

-Deepayan




More information about the R-help mailing list