You are not logged in.
Pages: 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
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
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
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
Pages: 1