// troubleshooting guide · vim

Vim Frozen After Ctrl+S (Screen Not Responding)

Status
Workaround available
platforms:
Linux, macOS, WSL, SSH/PuTTY
updated:
November 23, 2026
reports:
5
Method
how we research
Share

RUNBOOK · vim/frozen-ctrl-s3 FIXES

// quick answer

Ctrl+S is not save in a terminal: it sends XOFF, which pauses all output, so Vim looks frozen. Press Ctrl+Q to resume, then save with :w. Add stty -ixon to your shell config to stop it happening again.

Most likely fix: Press Ctrl+Q to unfreeze

How to fix it

// try these in order, the most common fix is first

  1. FIX 1Press Ctrl+Q to unfreeze

    1. 01Press Ctrl+Q (XON) once; extra presses do no harm
    2. 02Remember that keys typed while frozen were still received, so check the buffer and press u to undo stray edits
    3. 03Save with :w
    Did this fix it?
  2. FIX 2Turn off terminal flow control

    1. 01Add stty -ixon to ~/.bashrc or ~/.zshrc
    2. 02Or use stty stop undef to free only Ctrl+S
    3. 03Open a new terminal; Ctrl+S no longer freezes the screen
    Did this fix it?
  3. FIX 3Optionally map Ctrl+S to save

    1. 01After disabling flow control, add nnoremap <C-s> :w<CR> to ~/.vimrc
    2. 02Add inoremap <C-s> <Esc>:w<CR>a for insert mode
    Did this fix it?

SANDBOX · vim RUNS IN YOUR BROWSER

Try it: write a commit message in Vim (and get back out)

A hands-on Vim-style sandbox, including the spots where users get stuck. See where problems like this one start. 1-2 minutes, nothing is saved.

Symptoms

Vim stops updating after pressing Ctrl+S. Keys you type seem to do nothing, then all appear at once after the terminal is unfrozen.

Why it happens

  • C-01Ctrl+S is the XOFF flow-control character, which tells the terminal to stop sending output
  • C-02Habit from GUI editors where Ctrl+S saves
  • C-03Ctrl+S is consumed by the terminal driver, so mapping it in Vim does not work while flow control is on

// this guide also covers

  • vim frozen ctrl s
  • vim not responding
  • vim stuck after ctrl s
  • vim ctrl s freeze

Still not working?

If Vim keeps failing, you're not alone. See every Vim problem users report or the alternatives people switch to.

Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.

Talk to us

Watch Vim Get an email when its price changes, it has an outage, or we publish a new fix. No spam.

Fixed it? Share this guide

The same problem in other apps

All crashes, freezes & blank screens guides →

Other Vim errors

All 17 Vim errors and fixes →