• Member for 6 years, 4 months
  • Last seen more than a month ago
Stop waiting for the rest of a normal mode command and accept the command typed so far
Accepted answer
0 votes

This appears to be impossible in general using standard key mappings. There is no functionality to tell Vim to "accept whatever I already entered" for an arbitrary sequence of inputs, at the ...

View answer
Does ":norm! @q" use mapped keys inside the macro?
3 votes

Yes, mappings inside the macro are still applied as normal. For example, apply the commands in the question to the file: line1 line2 line3 line4 The output will be: this is a contrived example: hello ...

View answer