Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can Vim stop responding?

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)

like image 754
Sagar Jain Avatar asked Jul 15 '14 10:07

Sagar Jain


People also ask

How Force Quit Vim?

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! .

Why is Vim frozen?

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.


1 Answers

You've stopped the terminal with CTRL-S. To resume, press CTRL-Q. Btw, this is not VIM-specific, but rather terminal-specific.

like image 147
Jan Spurny Avatar answered Sep 25 '22 10:09

Jan Spurny