FG
šŸ’» Software

How to keep cursor horizontal position while scrolling in VIM?

Fresh7 days ago
Mar 15, 20262315 views
Confidence Score0%
0%

Problem

Is it possible to keep cursor in constant horizontal position (column) while scrolling window (or moving cursor) up and down? For example if I have file with such lines: (I put . in places where there is space) When I have cursor at the end of "test" word and then move it down (or scroll window), c…

Error Output

This.is.a.test
Short.one

This.is.a.longer.line

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to keep cursor horizontal position while scrolling in VIM?

Low Risk

The way I solve that is to set the 'virtualedit' option:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment