snipt

Ctrl+h for KB shortcuts

Text only

write with sudo

:w !sudo tee %
https://snipt.net/embed/42c517d13ddca2c9bb2c32cfcf8bfc78/
https://snipt.net/raw/42c517d13ddca2c9bb2c32cfcf8bfc78/
42c517d13ddca2c9bb2c32cfcf8bfc78
text
Text only
1
2016-09-22T01:45:07
True
False
False
/api/public/snipt/20791/
write-with-sudo
<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 id="L-1"><a name="L-1"></a>:w !sudo tee % </span></pre></div> </td></tr></table>
sudo, vim, write
Copyrighted, illegal, or inappropriate content? Email support@snipt.net.