tags:

views:

395

answers:

5

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.

+2  A: 

Check out Pimp. Also, read this related question.

alt text

brianegge
A: 

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.

just somebody
The user may not be wed to vim, but that doesn't mean he's open to sleep with a fat whore (emacs).
brianegge
brianegge, i wish comment upvote could give points hahaha
Casey
+8  A: 

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:

a paid nerd
+1 for Screen, I find that combination excellent.
Greg Hewgill
re GNU Screen: there's also BSD tmux
just somebody
jinxed_coder
+3  A: 

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.

thrope
Thank you very much for introducing me to PIDA. It looks awesome and works great on my machine (its like a dream come true). Do you know if there are any windows IDEs that can embed VIM?
jinxed_coder
Only other one I know is eclim which I think works on windows... haven't used it but it looks pretty flexible (you can have vim in eclipse basically)
thrope
+1  A: 

Looks like this vim plugin seems to do the job.

http://www.vim.org/scripts/script.php?script%5Fid=2043

jinxed_coder