我知道您可以在类 Unix 操作系统上以 Vi 模式使用 Python shell。例如,我在我的中有这一行~/.inputrc
:
set editing-mode vi
这让我可以在 Python shell 中使用 Vi 风格的编辑。
但是当在 Windows XP 机器上使用 Python 时,这可以工作吗?我正在使用直接从 python.org 下载的用于 Windows 的预构建 Python。
我猜测 Windows 版本不使用 GNU Readline 库,但我很高兴被证明是错误的。:)