I have a tab with the following window structure:
_________________________________
1 | 3 |
| |
| |
_______________|_________________|
4 | 5 |
| |
| |
_______________|_________________|
Numbers indicated the buffer numbers provided automatically by vim. I have vim-airline
that I was hoping would help me figure out which window I am currently focused on and which buffer I am editing. Please see gif here, reproduced below:
Buffer 1 is .vimrc
, 3 is Main1.cpp
, 4 is include1.h
and 5 is include2.h
.
As I move clockwise, the tabline in the bottom of each window gets highlighted indicating which window I am focussed on. However, the tabline does not work properly in buffers/windows 1 and 3. Essentially, in 1 (especially) and 3, I do not get to see 1:.vimrc
and 3:Main1.cpp
in the tablines for these specific windows clearly because the available space is crowded/joslted out unnecessarily for these windows by 4:include1.h
and 5:include2.h
, which are irrelevant in these windows. Is there a way that the tabline can highlight the buffer name completely even if there are other buffers jostling for space on the same tabline?
Because this could be behavior due to possibly some plugins that I have, in the image above, buffer 1 lists all the plugins I have currently installed.
Is there a way to fix this?
let g:airline#extensions#tabline#enabled = 1
That indeed shows a highlight on top which highlights which buffer I am on. Thanks for your help! I learned today that a tabline is different from a statusline. Just to cofirm, even if there is only a single tab, the tabline refers to the line on top, that is shared across all windows, while a status line is for each window. Is my understanding correct? Thanks again for your help!