本文介绍了与 Vi(m) 集成的 Python Interpreter Shell 可能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I love to use bpython but in Ruby there is a gem called interactive_editor that makes it possible to combine Vi(m) with the Ruby shell which makes the Development process much more comfortable. A good introduction to interactive_editor: http://vimcasts.org/episodes/running-vim-within-irb/

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

Are there any tools (like interactive_editor for Ruby) available to combine the Python shell with Vi(m)?

推荐答案

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

You could have a look at the vim-ipython vim plugin:

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

这需要您安装 ipython shell(但我还是建议您这样做,因为它为标准 python shell 添加了很多功能).

This requires you to install the ipython shell (but I recommend doing this anyway as it adds a lot of functionality to the standard python shell).

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

If you don't want to install ipython, I suggest having a look at the ConqueShell plugin for vim:

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

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

This lets you run shells within vim. Once you've sourced the vim-ball, all you need to do is

:ConqueTerm python

直接在vim中获取python shell.

to get a python shell directly in vim.

这篇关于与 Vi(m) 集成的 Python Interpreter Shell 可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-16 06:38