Andrew
Andrew

Reputation: 8480

Shell application in Vim window

I'm searching a way to start console application in vim window.
So I could open python & php interactive shell in it. It would be very handy.

I want something like

:10 sp !python

Upvotes: 4

Views: 2023

Answers (2)

johnsyweb
johnsyweb

Reputation: 141998

Bram Moolenaar writes:

Executing shell commands in a window

There have been questions for the possibility to execute a shell in a window inside Vim. The answer: you can't! Including this would add a lot of code to Vim, which is a good reason not to do this. After all, Vim is an editor, it is not supposed to do non-editing tasks. However, to get something like this, you might try splitting your terminal screen or display window with the "splitvt" program. You can probably find it on some ftp server. The person that knows more about this is Sam Lantinga [[email protected]]. An alternative is the "window" command, found on BSD Unix systems, which supports multiple overlapped windows. Or the "screen" program, found at www.uni-erlangen.de, which supports a stack of windows.

From Vim:

:help shell-window

Upvotes: 3

michaelmichael
michaelmichael

Reputation: 14135

Try the conque shell plugin. Sounds like exactly what you're looking for.

Upvotes: 9

Related Questions