FG

How to get back to insert mode in VIM when you accidentally hit C-x C-s

Fresh3 days ago
Mar 15, 202639693 views
Confidence Score1%
1%

Problem

Given this vim session: How do I get back to insert/command mode again? (C-x C-s means Control-x Control-s, not sure if it's normal vi terminology for keyboard shortcuts) I know there's some way to get out of this and into insert/command mode again, but I just can't remember how and searching Google or superuser hasn't yielded me anything. This happens since I mostly use emacs, but I use vim for remote hosts where I don't have emacs installed. Occasionally I do this and I figured I should learn how to get out instead of just restarting the terminal every time.

Error Output

% vim test-file.txt
iHello there!C-x C-s

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to get back to insert mode in VIM when you accidentally hit C-x C-s

Low Risk

C-q. in a console C-s is scroll lock, resume is C-q

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment