使用时! {cmd}在vim中,默认情况下,前一个命令的输出不会被清除。例如,我在VIM中执行了两个外部命令:!使和! gcc。当我输入! gcc,前一个命令的输出为!使包括:在VIM中清除旧外部命令的输出
[email protected]:~$ vim
make: *** No targets specified and no makefile found. Stop.
shell returned 2
Press ENTER or type command to continue
gcc: fatal error: no input files
compilation terminated.
shell returned 4
Press ENTER or type command to continue
我希望VIM清除这些旧输出,这样我可以清楚地查看当前命令的输出,你可以提供这方面的任何建议吗?