我如何使用vi键IPython的下* nix中? [英] How do I use vi keys in ipython under *nix?

查看:148
本文介绍了我如何使用vi键IPython的下* nix中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前在Bash中我使用设置-o VI 启用vi模式在我的bash提示符。

Currently in Bash I use set -o vi to enable vi mode in my bash prompt.

我如何得到这个打算在IPython的?

How do I get this going in ipython?

注:的如果答案适用于所有的* nix中,我会从标题中删除OS X:)

Note: If an answer applies to all *nix, I'll remove the OS X from the title :)

推荐答案

看起来像一个解决方案适用于许多其他的readline兼容的应用程序:

Looks like a solution works for many other readline compatible apps:

设置在〜/ .inputrc文件文件以下内容:

set editing-mode vi
set keymap vi
set convert-meta on

来源:<一个href=\"http://www.jukie.net/bart/blog/20040326082602\">http://www.jukie.net/bart/blog/20040326082602

这篇关于我如何使用vi键IPython的下* nix中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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