On 8/6/09, Peng Yu <pengyu...@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

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to