Tip #467: vim windows displaying output inside vim window
tip karma |
Rating 11/8, Viewed by 1958
|
created: |
|
April 30, 2003 21:45 |
|
complexity: |
|
basic |
author: |
|
char |
|
as of Vim: |
|
5.7 |
In vim for *nix or cygwin, the command
:!cmd
displays the output inside vim windows,
but for vim windows, the output is displayed in the console window.
To make the output displayed inside vim or gvim window,
can use
:echo system("command")
references:
:help system()
:help echo
<<Insert one character only |
display date-and-time on status line >>
Additional Notes
|