11

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.

Community
  • 1
  • 1
Nope
  • 34,682
  • 42
  • 94
  • 119

6 Answers6

12

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
  • 30,702
  • 30
  • 134
  • 179
3

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.

robince
  • 10,826
  • 3
  • 35
  • 48
  • 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? – Amjith Nov 17 '09 at 20:57
  • 1
    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) – robince Nov 17 '09 at 21:14
2

Check out Pimp. Also, read this related question.

Community
  • 1
  • 1
brianegge
  • 29,240
  • 13
  • 74
  • 99
1

Looks like this vim plugin seems to do the job.

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

Amjith
  • 22,626
  • 14
  • 43
  • 38
0

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

Conner
  • 30,144
  • 8
  • 52
  • 73
0

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
  • 18,602
  • 6
  • 51
  • 60