[ANN] Understanding Vim's excalamation mark command quoting/escaping rules
Shlomi Fish
shlomif at gmail.com
Thu Mar 31 22:56:28 IDT 2016
Hi all!
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:
https://github.com/shlomif/vim-begin/tree/master/understanding-exclamation-mark-shell-exec--escaping-rules
(short URL: http://is.gd/wA8Yie )
Executive summary:
- “%”, “#”, and “!” should be escaped with a backslash (“\”).
- All other punctuation/special characters (including a backslash)
need not and should not be escaped.
Enjoy!
Regards,
-- Shlomi Fish
--
------------------------------------------
Shlomi Fish http://www.shlomifish.org/
Chuck Norris helps the gods that help themselves.
Please reply to list if it's a mailing list post - http://shlom.in/reply .
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20160331/161ab2d2/attachment-0001.html>
More information about the Linux-il
mailing list