snipt

Ctrl+h for KB shortcuts

Bash

run file through command

:% ! <command>
https://snippets.siftie.com/embed/99ed68c40509dd886716cd3c3e4c63ee/
/raw/99ed68c40509dd886716cd3c3e4c63ee/
99ed68c40509dd886716cd3c3e4c63ee
bash
Bash
1
2019-03-20T21:28:17
True
False
False
/api/public/snipt/2448/
run-file-through-command
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>:% ! &lt;command&gt; </span></pre></div> </td></tr></table>
vim

Bash

insert output from command into current file

:r!<command>
https://snippets.siftie.com/embed/5826234529f090701d12ee5eefec7b9e/
/raw/5826234529f090701d12ee5eefec7b9e/
5826234529f090701d12ee5eefec7b9e
bash
Bash
1
2019-03-20T21:15:07
True
False
False
/api/public/snipt/2447/
insert-output-from-command-into-current-file
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>:r!&lt;command&gt; </span></pre></div> </td></tr></table>
vim

Text only

Indent enclosed code region vim

# position on '{'
=vi{
https://snippets.siftie.com/embed/188b81d3f3dfe5e984ae8db2fe8e269f/
/raw/188b81d3f3dfe5e984ae8db2fe8e269f/
188b81d3f3dfe5e984ae8db2fe8e269f
text
Text only
2
2019-03-20T21:11:38
True
False
False
/api/public/snipt/1658/
indent-enclosed-code-region-vim
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a># position on &#39;{&#39; </span><span id="L-2"><a name="L-2"></a>=vi{ </span></pre></div> </td></tr></table>
vim