stri ker wrote:
I am using version 7 on Mac OS X. When I open a shell with :sh, Vim
only runs a single command line at the bottom of the screen. In previous
versions and on my Windows box the :sh command opens a new shell
window. In addition, the 'clear' command doesn't clear and redraw the
screen.
How can Vim be configured to open a new window for a shell?
Can I force a clear when in shell?
TIA,
Kevin
It isn't possible to run a shell inside a Vim window, and it never was,
see ":help shell-window".
While :sh runs, the command-line expands as necessary, up to the whole
Vim screen (and your buffer windows aren't accessible anyway, Vim stays
in command-line mode until you exit the shell). That command-line
behaves as a "dumb teletype" terminal, as if your Vim screen had been
turned into a sheet of paper with a teletypewriter printing carriage
moving across it but never upwards. (When Unix was invented such
teletypewriters were the only existing consoles.) On such a terminal you
cannot clear the screen; at bast you can only tear away the paper.
To open a shell in a separate window, I can for instance click the
"Konsole" icon in the quick-launch part of my KDE taskbar. I don't know
the Mac but some similar possibility must exist.
Best regards,
Tony.