How to distinguish between <expr> and non-<expr> mappings?
- by ZyX
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.