4

My statusline has too much information to fit on one line. It was already marginal, but now that I've rotated my monitor into portrait mode, it's a huge issue.

I really like all the information airline provides, so I really don't want to simplify my configuration. And I have a lot of vertical space to spare.

So is there a way to split info across multiple lines or configure two airlines I can divide the information across?

1
  • 1
    Welcome to Vi and Vim! There is no option to change the statusline height (unlike the cmdheight). In my config, I found it useful to define two statuslines (short and long) and commands to toggle the two.
    – D. Ben Knoble
    Sep 16 '20 at 19:59
3

That is not possible. The statusline can only cover one single line. As a hack, you might be able to use the tabline in addition to the statusline to show some information. Airline for example allows to display the statusline in the tabline as an experimental extension:

* Display the statusline in the tabline (first top line): 
  let g:airline_statusline_ontop = 1

Apparently, there also exists an experimental patch, that allows to have a multi-line statusline, but I doubt a bit the general usefulness. Now that we have popup windows available, you can make use of those to display additional information.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.