Hi Tom! On Fr, 12 Mär 2010, Tom Link wrote:
> The backslash also has a special meaning in the substitution (eg if > you want to insert \n). This should work: > > %s/.\+/\=escape(submatch(0), '\') That was what I thought I have to do. So I have to remeber to always escape it. I still consider it a bug. If I want backslashes to be expanded, I'll use printf and I think submatch(0) should return the match as it was found. The thing is, I often use submatch(0) when I don't want to alter the text. And until now, I wasn't aware of the fact, that submatch changes it. 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
