vi输入模式在R? [英] vi input mode in R?

查看:179
本文介绍了vi输入模式在R?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要使用vi命令(例如ESC- /,ESC-k)编辑我的R记录。我在这里注意到一个类似的问题:
命令行中的输入模式Matlab ?
并尝试了在这篇文章中建议的readline mods(不是R使用readline?),但他们不工作(对我来说)。

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).

任何想法?

推荐答案

Vim-R插件应该做的伎俩。我已经在Ubuntu,MacOS和Windows 7中使用它。开发人员是伟大的,并经常修复bug。

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.

要在R控制台中获得Vim行为,你需要请使用Vim-R插件支持的 Conque Shell插件。我试了一天,但发现模式在R命令行有点乏味。所有我使用的是标签完成和最后一个命令。

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.

这篇关于vi输入模式在R?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆