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
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il

Reply via email to