<div dir="ltr"><div>Hi Daniel,<br><br></div>thanks for your reply,<br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 1, 2016 at 9:03 AM, Daniel Shahaf <span dir="ltr"><<a href="mailto:d.s@daniel.shahaf.name" target="_blank">d.s@daniel.shahaf.name</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Shlomi Fish wrote on Thu, Mar 31, 2016 at 22:56:28 +0300:<br>
> I prepared a document where I investigated which characters need to be<br>
> escaped in vim's ":!" commands of filtering the text through a shell<br>
> command.<br>
<br>
</span>The escape rules are documented:<br>
<br>
:help cmdline-special<br>
<span class=""><br></span></blockquote><div><br></div><div>I see - thanks. I was unable to find them in:<br><br></div><div>1. vim's help.<br><br></div><div>2. DuckDuckGo search.<br><br></div><div>3. Google search.<br><br></div><div>4. asking on freenode's #vim chatroom.<br><br></div><div>and the text there seems somewhat confusing.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
> Executive summary:<br>
><br>
> - “%”, “#”, and “!” should be escaped with a backslash (“\”).<br>
><br>
> - All other punctuation/special characters (including a backslash)<br>
> need not and should not be escaped.<br>
<br>
</span>Beyond [%#!] which you mention, there are also:<br>
<br>
- «<cword>» and friends<br>
<br>
- The envvars $MYVIMRC, $VIM, $VIMRUNTIME are available (:help $VIM,<br>
:help $MYVIMRC)<br>
<br>
- A literal LF (ASCII 0x0A) can't be entered (:help NL-used-for-NUL)<br>
<br></blockquote><div><br></div><div>thanks for the info!<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Cheers,<br>
<br>
Daniel<br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr">------------------------------------------<br>Shlomi Fish <a href="http://www.shlomifish.org/" target="_blank">http://www.shlomifish.org/</a><br><br>Chuck Norris helps the gods that help themselves.<br><br>Please reply to list if it's a mailing list post - <a href="http://shlom.in/reply" target="_blank">http://shlom.in/reply</a> .<br></div></div>
</div></div>