Vim: blank screen on subsequent shell commands -
i run shell commands vim time using !command syntax
when have results of 1 command on screen , press ! again (with intention of performing command). whole screen goes black except command @ bottom.
why happen? in opinion, more useful still have output of previous shell command on screen.
is there setting stops screen going blank subsequent commands?
if mean when previous external command output still visible, , vim shows "press enter or type command continue" prompt, :! indeed clear output. because vim's command line (which enter :) @ bottom of screen. there's no way around this.
to problem, many people recommend using terminal multiplexer screen or tmux, , use split of vim , separate shell in 2 windows. can use multiplexer's commands move / vim , resize corresponding windows based on needs.
without that, using vim, workaround capture command output in scratch buffer:
:new | 0read !ls is basic command; there more elaborate implementations in plugins or on vim tips wiki.
there plugins (like conqueshell, kent!) try implement terminal inside vim, have limitations on mentioned multiplexers.
Comments
Post a Comment