Hi, I just found out, that submatch eats my backslashes. Consider this example: ~$ gvim -u NONE -N -c ":put ='foo\bar'" -c ":%s/.\+/\=submatch(0)/"
which gives you foobar instead of foo\bar. Is there an easy way to prevent this without having me to remember, that I need to escape submatch, just because it could contain backslashes? I know that \0 works correctly, but I need to call a function in the replacement part. regards, Christian -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
