Am 12.09.2011 18:29, schrieb Spiros Bousbouras:
On Sep 11, 9:58 am, ZyX<[email protected]>  wrote:

If you use eval('"'.escape(maparg(...), '\<"').'"') instead of substitute() it
will be more reliable and you still won't have to use :imap.

Great. I was wondering whether there is a way to go from things
like '<NL>' to the actual character represented. But still it
would be nice if there was a function which gave you the
abbreviation exactly as the string which will be inserted. With
eval('"'.escape(maparg(...), '\<"').'"')  I'm worried that
perhaps some special cases won't work correctly although I don't
have a specific example in mind.

I'm only aware of <C-\>

The result of  eval('"\<C-\\>"')  is still the unexpanded '<C-\>',
because the inner backslash should not be escaped.

--
Andy

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