snipt

Ctrl+h for KB shortcuts

VimL

Strip DOS-style line endings in vim

:%s/\r\(\n\)/\1/g
https://snipt.net/embed/1beb82c8e7bdfb978d31888983ac9e55/
/raw/1beb82c8e7bdfb978d31888983ac9e55/
1beb82c8e7bdfb978d31888983ac9e55
vim
VimL
1
2019-07-10T15:07:31
True
False
False
/api/public/snipt/38878/
strip-dos-style-line-endings-in-vim
<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><span class="p">:</span>%s<span class="sr">/\r\(\n\)/</span>\<span class="m">1</span>/<span class="k">g</span> </span></pre></div> </td></tr></table>
regexp, vim