FG
💻 Software

Making the active window in vim more obvious

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

Problem

My workspace is normally one very big xterm with vim, split into six or more buffers. It would be really helpful if it were more obvious which one was the active buffer. Right now I'm using the presence of line numbers for this: but this means that when I change buffers my code jumps left or right,…

Error Output

augroup BgHighlight
    autocmd!
    autocmd WinEnter * set number
    autocmd WinLeave * set nonumber
augroup END

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Making the active window in vim more obvious

Low Risk

Following your template, you could vary different properties, such as colorcolumn: This will color column 80 on your current window, while disabling it on the others. It's a bit less jarring than setting/unsetting line numbers. An even less intrusiv…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment