mirror of
https://github.com/Brandon-Rozek/website.git
synced 2025-10-10 06:51:13 +00:00
New Posts
This commit is contained in:
parent
21d2ce3ff6
commit
a1eb572cd4
6 changed files with 85 additions and 0 deletions
25
content/blog/terminaloutputvim.md
Normal file
25
content/blog/terminaloutputvim.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
title: "Terminal Output in Vim"
|
||||
date: 2021-06-18T16:22:30-04:00
|
||||
draft: false
|
||||
tags: []
|
||||
---
|
||||
|
||||
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]`
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue