开发者

Python in Vim buffer? [duplicate]

开发者 https://www.devze.com 2022-12-11 20:50 出处:网络
This question alrea开发者_Go百科dy has answers here: How do I run a terminal inside of Vim? (24 answers)
This question alrea开发者_Go百科dy has answers here: How do I run a terminal inside of Vim? (24 answers) Closed 8 years ago.

Is it possible to have a Python interpreter open in a Vim buffer? Something like:

________________________
|                      |
|                      |
|  my python script    |
|                      |
|                      |
------------------------
|                      |
|  python interpreter  |
------------------------

Right now I have Vim open and a separate interpreter open. I saw the answer to this and was blown away.

Anyway, thanks for the help and if there is something I can just google then point me in that direction.


No, you can't run a shell in Vim by default. That's by design.

However, there are a handful of ways to accomplish this:

  • GNU Screen and using windows
  • tmux and using windows
  • The Vim-Shell patch
  • Vim scripts like Conque


You could have a look at PIDA. Not exactly what you asked for but it is a Python IDE that embeds vim so might do the trick.


Check out Pimp. Also, read this related question.


Looks like this vim plugin seems to do the job.

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


what you want is have a vim window act as a terminal. AFAIK vim can't do this (yet?). otoh, if you aren't wed to vim (yet), try emacs, which does have that feature.


This can be accomplished with tmux and tslime.vim.

See this post for more info: http://joshuadavey.com/post/15619414829/faster-tdd-feedback-with-tmux-tslime-vim-and

0

精彩评论

暂无评论...
验证码 换一张
取 消