vi input mode in R?

心已入冬 提交于 2019-12-10 20:24:34

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/4606463/vi-input-mode-in-r

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!