Graham Bygrave
Graham Bygrave

Reputation: 53

vi input mode in R?

I'd like to be able to edit my R history using vi commands (e.g. ESC-/, ESC-k). I noticed a similar question here: vi input mode in command line Matlab? and tried the readline mods suggested in this post (doesn't R use readline?) but they don't work (for me).

Any ideas?

Upvotes: 3

Views: 1550

Answers (1)

Richard Herron
Richard Herron

Reputation: 10102

The Vim-R-plugin should do the trick. I have used it in Ubuntu, MacOS, and Windows 7. The developer is great and does frequent bugfixes.

To get Vim behavior in the R console you'll need to use the Conque Shell plugin, which Vim-R-plugin supports. I tried it for a day but found modality in the R command line a little tedious. All I ever use is tab completion and last command.

Upvotes: 3

Related Questions