When vim is split into different panes horizontally, each pane has its own statusline. It's easy to highlight the statuslines differently based on current and non-current panes. BUT, I cannot figure out how to set different values for StatusLine
and StatusLineNC
. Only the former is recognized by vim/neovim.
My plan is replace the values of non-active statuslines with em-dashes, making it look like a line-divider between panes. The active pane will have a conventional statusline with the a filepath, columns, row, etc.
How do you set separate values for them? Is this possible? Suggestions?
Bonus question: how can you repeat a single char through a statusline?
StatusLine
and the NC variant are highlight groups; if you are referring to the'statusline'
option, Im afraid there is only one.BufEnter
andBufLeave
autocommands. Suggesting looking into from @ChristianBrabandt