Suppose I wrote this command:
command! -nargs=1 E echo ' -> <args>'
and when user feeds an argument,
:E abc
I intend to see the following effect as they hit Enter:
:E abc -> abc
Of course that's not happening, since vim flushes :E abc
when printing -> abc
, leaving the command-line showing:
-> abc
Is there an option to retain the command typed by user in the command-line, before finishing execution? Or are there alternative ways to achieve the same effect?
:help c_CTRL-\_e
.