I have a function that opens a terminal window running some program. The program is quit by pressing q. But when I press q in the terminal window shortly after (within 1-2 seconds) of it being opened, it is instead interpreted by vim as starting macro recording. This only happens if it is the first key I press in the terminal window. Why does this happen and is there a way to stop it?

  • Are you running Neovim?
    – Matt
    Dec 6 '20 at 15:59
  • @Matt It's Vim 8.2
    – rlms
    Dec 6 '20 at 16:13
  • 1
    Since I don't see this behavior with my simpl plugin, I'll point you towards How to debug my vimrc
    – D. Ben Knoble
    Dec 6 '20 at 17:33
  • A possible answer is that you start your terminal in normal mode. I am not sure it applies to vim as saw this on nvim.
    – eyal karni
    Dec 8 '20 at 10:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.