I would like to define a vim macro that interrupts for user input at a specific time, is this possible?
EDIT: Turns off i (q) entries, not macros
You can use an input command in a record, but this is more of a problem than it costs.
First, I displayed the key input input tab
:map <F2> a<CR>=input('input: ')<CR>
then I made this entry in the q register
name:
and paste it into a new tab
iname: ^[
And after the final exit, I pressed <CV><F2>
on the line:
iname ^[^[OQ
What I returned back to the q buffer, then I used a macro, allowing me to use the input function. It works, but awful.
source share