You are not logged in.

#1 2018-10-18 09:27:21

Kirill Bugaev
Member
Registered: 2018-08-03
Posts: 173

[Solved] vim-airline laststatus=1

I have installed vim-airline plugin from Arch repository. Now I see cool status line every time when I open empty vim window. But I don't want to see it in this case.  I have tried to ":set laststatus=1" in .vimrc, but it doesn't work. Anybody knows how to configure vim (or vim-airline) to show status line only when 2 or more buffers opened?

Last edited by Kirill Bugaev (2018-10-19 02:57:42)

Offline

#2 2018-10-18 13:58:24

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,386
Website

Re: [Solved] vim-airline laststatus=1

You may want to edit lines 131+132 of airline.vim as they explicitly set laststatus=2.  Alternatively, you could override this setting as long as you set it *after* airline.vim is sourced.

This may be an upstream bug as the behavior of the code in airline.vim does not match their documentation (e.g., their second troubleshooting FAQ item).


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2018-10-18 21:39:23

bulletmark
Member
From: Brisbane, Australia
Registered: 2013-10-22
Posts: 700

Re: [Solved] vim-airline laststatus=1

I raised a bug about this when it was changed in vim-airline: https://github.com/vim-airline/vim-airline/issues/1560.

Last edited by bulletmark (2018-10-18 21:39:36)

Offline

#4 2018-10-19 02:55:33

Kirill Bugaev
Member
Registered: 2018-08-03
Posts: 173

Re: [Solved] vim-airline laststatus=1

Trilby, bulletmark thanks a lot.
I have added ":autocmd VimEnter * set laststatus=1" to my .vimrc. Now vim-airline works as I want.

Last edited by Kirill Bugaev (2018-10-19 02:56:35)

Offline

Board footer

Powered by FluxBB