Description:
The string "2 q" appears on the screen when exiting insert mode in vim (via escape), which runs inside a terminal that was opened in vim, which runs inside tmux.
This may sound like an extreme edge case, however, it is pretty common in my workflow to have vim running inside tmux, and then have a terminal inside vim to perform git commit (which opens vim).
This also happens with plugins that use terminal such as lazygit, etc, because they launch vim inside for committing.
Description: The string "2 q" appears on the screen when exiting insert mode in vim (via escape), which runs inside a terminal that was opened in vim, which runs inside tmux.
This may sound like an extreme edge case, however, it is pretty common in my workflow to have vim running inside tmux, and then have a terminal inside vim to perform git commit (which opens vim).
This also happens with plugins that use terminal such as lazygit, etc, because they launch vim inside for committing.
If it helps, I thought initially this was a bug with vim, but it happens only when your plugin is loaded, the bug was introduced between v8.2.0797 and v8.2.0798, when the plugin is used, by the following commit https://github.com/vim/vim/commit/be593bf135f6967335b14ba188bd5f8f32175c75
Reproduction steps: Detailed steps to reproduce the behavior:
Expected behavior Behave normally, no strings should be printed on the screen when pressing escape or entering insert mode.
Screenshots: See here image of the behavior:
Here in insert mode also look at the "6 q" below:
Environment: