Sagar Jain
Sagar Jain

Reputation: 7941

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)

Upvotes: 35

Views: 7383

Answers (2)

edi9999
edi9999

Reputation: 20554

To disable the Ctrl-S/ Ctrl-Q completely from your terminal, add the following line to your .bashrc :

stty -ixon

Upvotes: 4

Jan Spurny
Jan Spurny

Reputation: 5528

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

Upvotes: 60

Related Questions