With an intention to increment a number in a line in Vim, I pressed Ctrl+A. To my wonder Vim stopped responding! Later I realized that I had actually pressed Ctrl+S.
Can somebody please explain this behavior?
I've made some changes to the file, but not saved before vim stopped responding.
(Aside: Ctrl+X decreases the next number on the line)
In Normal Mode , you can also press ZZ or ZQ to quit Vim. Where ZZ is the same as :x and ZQ is the same as :q! .
This may be caused by a typo or by a "normal" search backwards for a seldom text. The problem is, that in this state vim is not interruptible. CTRL-C does not work. No other key sequence or mouse event can stop vim.
You've stopped the terminal with CTRL-S
. To resume, press CTRL-Q
. Btw, this is not VIM-specific, but rather terminal-specific.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With