I really like to tweak horizontal with
fillchars but vim seems don't allow users to do it. How can I disable completely that annoying bar?
(See if I got it correctly)
OP wanna have a
fillchars for horizontal split line, just like the
| for a vertical split.
Fillchars line up as a line to split the windows.
I am not sure how OP made the vertical
| disappear -- did OP use
:set fillchars=\␣ (I mean the space) instead?
My Attempt to Answer
:h fillchars, we know that
:set fillchars=stl:- would fill the empty space after the statusline with
And then, to get rid of the file name from the statusline, from
:h statusline we know that the default is empty. (That's why OP's attempt to do
:set statusline= didn't remove the statusline)
-- so we have to set it to a single
Then the whole statusline (for an active Window) is now
----... and what's left is to also do
:set fillchars+=stlnc:-, so non-active Window also has a nice horizontal line for splits.
:se stl=- fcs=stl:-,stlnc:-,vert:\|
Or a nicely documented one (for putting into a publicly shared
:set statusline=- " hide file name in statusline :set fillchars=stl:- " fill active window's statusline with - :set fillchars+=stlnc:- " also fill inactive windows :set fillchars+=vert:\| " add a bar for vertical splits
For whatever reasons, we can also hide the most bottom statusline:
Tested on my own Vim version 7.4.8056 on macOS with
vim -u /dev/null.