Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python in Vim buffer? [duplicate]

Tags:

python

vim

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.

like image 352
Nope Avatar asked Nov 17 '09 04:11

Nope


3 Answers

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
like image 72
a paid nerd Avatar answered Oct 16 '22 06:10

a paid nerd


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.

like image 3
robince Avatar answered Oct 16 '22 07:10

robince


Check out Pimp. Also, read this related question.

like image 2
brianegge Avatar answered Oct 16 '22 07:10

brianegge