Hi,
I think I found an inconsistency.
#v+
vim -u NONE -N
:let @a='foobar'
:fu AB()
return "<c-r>a"
:endfu
:fu CD()
return "\<c-r>a"
:endfu
:imap <expr> ab '<c-r>a'
:imap <expr> cd AB()
:imap <expr> ef CD()
#v-
Now enter insert mode:
1) Inserting ab results in:
foobar
2) Inserting cd results in:
<c-r>a
3) Inserting ef results in:
foobar
That is unexpected. I think the first case, it should also insert
'<c-r>a' Since according to the documentation (:h expr-quote) keys need
to be returned like "\<key>" in a double quoted string.
How would one return the literal string "<c-r>a" in the first case?
Is this a bug or did I miss anything?
Best,
Christian
--
Alles Gute kommt nach oben.
--
--
You received this message from the "vim_dev" 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
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.