mirror of
https://github.com/Brandon-Rozek/website.git
synced 2024-11-26 01:53:58 -05:00
366 B
366 B
title | date | draft | tags | medium_enabled |
---|---|---|---|---|
Terminal Output in Vim | 2021-06-18T16:22:30-04:00 | false | true |
In Vim you can output the result of a command below your cursor by using :r!
.
Examples:
Hello World
:r! echo Hello World
The current timestamp
:r! echo "[$(date '+\%Y-\%m-\%d \%H:\%M:\%S')]"
Outputs: [2021-06-18 16:13:19]