I want to define a command that is executed by :command<CR>.
I tried something like this:
cmap hello exec "normal aHello World"<Esc>
I have two problems with the result:
If I type slowly, then there sits
:helloin the bottom line, and after pressing Return, I getNot an editor command: hello
If I type fast then
:hellodoesn’t sit there and it doesn't wait for me to hit the Return key – but at least it works.
Can somebody please points out to me how I have to define the hello command in a way that typing slowly will work?