When using vim's terminal mode (access by :term) if I put in two double quotes and then press the left button (such as if you were to type in git commit -m "" and then go back one character to start the message), the following happens:
- The terminal is closed.
- A new line is added above the cursor in the buffer.
- Insert mode is entered.
- The character
Dis inserted.
The exact typed sequence is :term<cr>git commit -m ""<left>
Why is it that this series of events happens, and how can I prevent it in the future?