Python 解释器 Shell 可以与 Vi(m) 集成吗?

2024-05-09

我喜欢使用 bpython,但在 Ruby 中,有一个名为 Interactive_editor 的 gem,它可以将 Vi(m) 与 Ruby shell 结合起来,从而使开发过程更加舒适。 Interactive_editor 的一个很好的介绍:http://vimcasts.org/episodes/running-vim-within-irb/ http://vimcasts.org/episodes/running-vim-within-irb/

是否有任何工具(例如 Ruby 的 Interactive_editor)可用于将 Python shell 与 Vi(m) 结合起来?


你可以看一下 vim-ipython vim 插件:

https://github.com/ivanov/vim-ipython https://github.com/ivanov/vim-ipython

这需要您安装 ipython shell(但我建议无论如何都这样做,因为它为标准 python shell 添加了很多功能)。

如果你不想安装 ipython,我建议你看看 vim 的 ConqueShell 插件:

http://www.vim.org/scripts/script.php?script_id=2771 http://www.vim.org/scripts/script.php?script_id=2771

这可以让你在 vim 中运行 shell。一旦你找到了 vim-ball,你需要做的就是

:ConqueTerm python

直接在 vim 中获取 python shell。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Python 解释器 Shell 可以与 Vi(m) 集成吗? 的相关文章

随机推荐