FG

In VIM, can I find out what keys I just typed?

Fresh3 days ago
Mar 15, 20264621 views
Confidence Score0%
0%

Problem

Sometimes I'll be using VIM and something will happen, and I don't know what it was or what I typed that caused it. Is there a way to list some of the recent keys that were typed, and, even better, find out what actions they triggered?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: In VIM, can I find out what keys I just typed?

Low Risk

has an option you could abuse, but it won't work while is still running. -w {scriptout} All the characters that you type are recorded in the file {scriptout}, until you exit Vim. This is useful if you want to create a script file to be used with "vi…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment