You can run your program in vim integrated window terminals with:
:term ./%<
" or
:vert term ./%<
(I've used ./%<
to designate foo
in the current directory supposing your edited file is foo.cpp
that you've compiled into foo
).
If you prefer you could use instead another windowed terminal by using :!xterm
, :!gterm
or whatever. Don't forget the argument that tells what to run in the terminal. Sometimes it changes from one to the other.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…