The Computer Oracle

Pressing "Ctrl + S" by mistake while using Vim

Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Isolated

--

Chapters
00:00 Question
01:22 Accepted answer (Score 72)
02:20 Thank you

--

Full question
https://superuser.com/questions/1390977/...

Question links:
[History of Ctrl-S and Ctrl-Q for flow control]: https://retrocomputing.stackexchange.com...
[What is the point of Ctrl-S?]: https://unix.stackexchange.com/q/137842
[Software flow control here]: https://en.wikipedia.org/wiki/Software_f...
[disable Ctrl-S (XOFF) START/STOP signals]: https://superuser.com/questions/124845/c...
[Does Ctrl-S actually stop the process on terminal?]: https://www.quora.com/Does-Ctrl-S-actual...

Accepted answer links:
[here]: https://www.quora.com/Does-Ctrl-S-actual...
[here]: https://en.wikipedia.org/wiki/Software_f...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#keyboardshortcuts #vim

#avk47



ACCEPTED ANSWER

Score 84


Well, It's no a vim issue. This is called Software flow control. There is a bunch of info out there on the internet.

According to an article in here:

CTRL-S (XOFF) is part of Software flow control. XOFF notifies the process or device sending data that the input buffer is full and it shouldn't send any more data. The software (outputting process, firmware, terminal etc) can choose how to handle the notification - i.e. keep running and buffer data, drop data, pause until XON is received, etc.

More info about Software flow control here.

NOTE: if you want to get the control of your terminal after you pressed CTRL + s key combination, you can press CTRL + q.

I hope this helps.