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?
Asked
Active
Viewed 38 times
1
rlms
- 305
- 1
- 5
-
Are you running Neovim? – Matt Dec 06 '20 at 15:59
-
@Matt It's Vim 8.2 – rlms Dec 06 '20 at 16:13
-
1Since I don't see this behavior with my simpl plugin, I'll point you towards How to debug my vimrc – D. Ben Knoble Dec 06 '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 08 '20 at 10:41