<div dir="ltr"><div><div>Hi all!<br><br>I prepared a document where I investigated which characters need to be escaped in vim's ":!" commands of filtering the text through a shell command. It can be found here:<br><br><a href="https://github.com/shlomif/vim-begin/tree/master/understanding-exclamation-mark-shell-exec--escaping-rules" target="_blank">https://github.com/shlomif/vim-begin/tree/master/understanding-exclamation-mark-shell-exec--escaping-rules</a><br clear="all"><br></div>(short URL: <a href="http://is.gd/wA8Yie" target="_blank">http://is.gd/wA8Yie</a> )<br><br></div><br><table><tbody><tr><td>
<br></td>
      </tr>
      <tr>
        </tr></tbody></table><table><tbody><tr></tr><tr>
        <td>Executive summary:</td>
      </tr>
      <tr>
        </tr><tr></tr><tr>
        <td>
<br></td>
      </tr>
      <tr>
        </tr><tr></tr><tr>
        <td>    - “%”, “#”, and “!” should be escaped with a backslash (“\”).</td>
      </tr>
      <tr>
        </tr><tr></tr><tr>
        <td>
<br></td>
      </tr>
      <tr>
        </tr><tr></tr><tr>
        <td>    - All other punctuation/special characters (including a backslash)</td>
      </tr>
      <tr>
        </tr><tr></tr><tr>
        <td>    need not and should not be escaped.</td>
      </tr>
      <tr>
        </tr></tbody></table><table><tbody><tr>
        <td><br>Enjoy!<br><br>Regards,<br><br>-- Shlomi Fish<br><br></td></tr></tbody></table><div><div>-- <br><div><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></div>