How to distinguish between <expr> and non-<expr> mappings?
Posted
by ZyX
on Stack Overflow
See other posts from Stack Overflow
or by ZyX
Published on 2010-04-05T13:18:37Z
Indexed on
2010/04/05
13:23 UTC
Read the original article
Hit count: 226
I want to add a possibility of restoring mappings overwritten by my plugin. But the problem is that I cannot distinguish between the following mappings:
inoremap <expr> @ test
and
inoremap @ test
First mapping inserts the contents of the variable test
, while second inserts text «test». Both mappings give maparg("@", 'i')=="test"
and identical output of inoremap i
.
© Stack Overflow or respective owner