FG
💻 Software

What configuration will let vim show the buffer/filename in the status line even when only one buffer/file is open?

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

Problem

When I have more one one file open in vim (using split-screen), each commandstatus line (the last line in the window) looks like this: That's the filename on the left, with the ruler position and percentage through the file on the right (via ). However, when I only have one buffer open, the status …

Error Output

filename.txt                           73,1            4%

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: What configuration will let vim show the buffer/filename in the status line even when only one buffer/file is open?

Low Risk

That's the status line ( ). To enable it when you only have one window, add to your .vimrc:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment