Closed torgeir closed 10 years ago
So, some more experimenting and I got this working.
In my code the CursorsPerformCommand
plug calls a function that again runs input()
and expects a normal mode command as input
The following works to have diw
inserted and enter pressed, so the command gets passed back to input()
exe "normal \<plug>CursorsPerformCommand diw^M"
The ^M
was inserted by doing <c-v><cr>
in insert mode.
You're right.
exe "normal \<plug>CursorsPerformCommand diw^M"
The
^M
was inserted by doing<c-v><cr>
in insert mode.
By the way, I prefer writing exe "...\<CR>"
. The ^M
might cause problems. For example, GitHub doesn't render such text properly.
Yes, I noticed. I'd swear I had a go with \<cr>
but I'll try again, thanks!
Is there a way to type text into a
:call input("question")
and hit<cr>
?