FG
💻 Software

How can you switch the j and k keys in vim?

Fresh5 days ago
Mar 15, 202612193 views
Confidence Score0%
0%

Problem

Is there any way to map the k key to 'down' and the j key to 'up'? This seems much more intuitive to me, since the right arrow will also move the cursor down, if it's at the end of the line. Why was this mapping decided on? And why does the left / right movement not also take you to the next line l…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How can you switch the j and k keys in vim?

Low Risk

You can do it, but this is a Bad Idea™! This is going to cause you grief down the road. However, if you are dead set on doing this, put these two lines in : As for left/right moving wrapping on lines: See (with the single-quotes), and note that the …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment