Jürgen Krämer wrote:
> you can use \= in substitute():
>
> :echo substitute('abc%41def', '%\(\x\x\)', '\=nr2char("0x".submatch(1))', 'g')

Brilliant, thanks! I must have known that years ago??

John

-- 
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

Reply via email to