FG

How to show the current Vi mode when using Vi keybindings in the shell?

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

Problem

I use the vi keybindings in my tcsh shell. Now, I don't know which vi mode I'm in ( mode or mode), which leads to a lot of frustration. Does anyone know of a way to show the current vi mode in the shell? (by including in the prompt or something)

Error Output

insert

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to show the current Vi mode when using Vi keybindings in the shell?

Low Risk

To anyone having this exact problem (like myself): I found a solution at stackoverflow. Apparently there is native support for this in readline, so you can just add the following to your : And to customize the actual character use:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment