Questions tagged [statusline]
51 questions
26
votes
4 answers
Display number of current buffer
I have a simple requirement: I want to display the number of the buffer I'm currently editing.
I don't want to type :buffers (or equivalent) but have this number show up in my status bar thingy along with the file name, current column information…

Daniel
- 263
- 1
- 3
- 4
13
votes
1 answer
How to merge vim commandline and statusline
in vim, the command line always at the bottom.
and the above is statusline (if display).
status line could formated powerful. it's cool but wast a line.
so, here is my question:
can i merge the statusline to commandline (not use ruler):
normal…

user3121730
- 133
- 5
12
votes
1 answer
How do you remove the status line from the MiniBufExplorer window
I'm using Vim with MiniBufExplorer.
How do you hide the statusline for the MBE window? I've tried every permutation of setting laststatus (0,1,2) but the best I get is the status line disappearing on the bottom of the gVim window but remaining near…

cdelahousse
- 121
- 1
- 3
10
votes
2 answers
How to find out a certain color value the current colorscheme is using for certain stuff?
I need this in order to finish a plugin I'm making in order to change the colors of the statusline depending on the mode.
However I've run across an obvious problem, how would I know what theme the user is using? And even if I knew I can't make…

greduan
- 4,770
- 6
- 45
- 73
10
votes
1 answer
Vim: How does the statusline '%V' work?
here's a Vim question that I haven't been able to find the answer for. What does the %V statusline variable do?
I checked the documentation I could find, but it's not really clear, I am aware it shows the virtual column, but what do the…

greduan
- 4,770
- 6
- 45
- 73
8
votes
2 answers
Can I have multiline statusline in Vim?
Is there any way to make the status line in Vim spanning across multiple lines (e.g. inserting a newline character or something similar)?
I'd like to have full path (%F) to the opened file in one line and some other info in next one because I'm…

Peter Kovac
- 2,257
- 1
- 19
- 18
8
votes
1 answer
Vim display in statusline after delay
Is it possible to have the statusline in Vim be updated so and so long after a given event?
And if so, how does one do that?

john-jones
- 7,490
- 18
- 53
- 86
8
votes
1 answer
How to recognize javascript libraries/frameworks in Vim?
I've switched from Textmate to Vim for about a year ago, so I've been immersed in books, screencasts and forums about Vim, and how people customize their .vimrc's.
I'm not a beginner anymore, however by no means I'm an advanced or intermediate user,…

Jose Elera
- 938
- 9
- 16
8
votes
1 answer
Vim: How to detect the mode in which the user is in, for statusline?
I need a simple (or complex) way to figure out what mode the user is in. I need to know if the user is in Normal, Insert, Visual, Replace, Change etc.
I am aware of the mode() function, however I can't figure out how to make it output a full string…

greduan
- 4,770
- 6
- 45
- 73
7
votes
3 answers
Changing vim's status line's "file modified" flag to be more noticeable
I do this all the time:
Edit a file, go back to the terminal and execute the script I'm writing… only to realize that I haven't written it to disk yet.
How do I make it so that vim is basically shouting at my eyes whenever the file is unwritten?…

phillmv
- 195
- 2
- 7
6
votes
2 answers
Can I give the quick fix window a different status line in vim?
I'd like to give the Quick Fix window a different status line than all my other windows.
I want it to have:
set statusline=\ %n\ \ %f%=%L\ lines\
When I'm in the quick fix window, I can use :setlocal, but how in my .vimrc can I make it have a…

Ned Batchelder
- 364,293
- 75
- 561
- 662
6
votes
4 answers
airline.vim does not work inside tmux
I am new to tmux and also not an expert on VIM, I tried to use tmux these days, but seems that airline disappeared when I used vim inside tmux. I would like to show you the screen shots and hopefully anyone can help me solve this problem.
airline in…

kevinjom
- 343
- 2
- 15
6
votes
1 answer
How to show the current filename in each split window's status line in Vim?
I have a global statusline set, but it would be useful if each split window had the current filename in its own statusline.

Eno
- 10,730
- 18
- 53
- 86
5
votes
2 answers
Vim statusline does not expand color/highlight group from expression
I wrote a function which returns a string:
function! StatusBricks()
let l:stat = Brick(statusbricks#ReportLinecount('raw'), {
\ 'brick_color': 'LineNr',
\ 'delimiter_position': 'right',
\ 'delimiter_right': '❯'
\…

Saucier
- 4,200
- 1
- 25
- 46
4
votes
2 answers
Is it possible to have a single statusline in vim with multiple splits?
Can I have a single statusline at the bottom of the window that changes to information about the currently focussed buffer?

Zac Pullar-Strecker
- 342
- 4
- 12