If you are using R in a *nix machine then R is usually compiled with support for gnu-readline which does have a vi mode.

You need a file called ".inputrc" in your home directory containing the following line:

        set editing-mode vi

in order to activate it. It works exactly like the vi mode in bash (which also uses gnu-readline). I don't think you can get a vi mode for the R command prompt in Windows.

Regards,

Trevor

Peng Yu 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?

Regards,
Peng


______________________________________________
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