[ANN] Understanding Vim's excalamation mark command quoting/escaping rules

Shlomi Fish <[email protected]>
Newsgroups gmane.linux.region.israel
Message-ID <CANy4znV8XXBQ-TtO4OVJuJiO7eJ-H5MLW+vUZiQz58VFNJcjxw@mail.gmail.com>
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 .

_______________________________________________
Linux-il mailing list
[email protected]
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.