I have been configuring my VIM installation for days now, and it's just a few more days away from heavenly perfect. Only thing that is bugging me however, is the border width of the splits.
Is there any way to change the width of these? Or maybe just set the color of them to the same as the background?
I mean the clunky 6/7px vertical border displayed in this picture.
To switch to the right window, press “Ctrl + w”, then “l”. To go to the left window, it's “Ctrl + w”, then “h”. If you did a horizontal split, then going up and down is necessary. For going up, press “Ctrl + w”, then “k”.
The split will always be one character cell wide. However you can
set fillchars+=vert:\|
and set the VertSplit highlight group to something appropriate, e.g.
hi vertsplit guifg=fg guibg=bg
in your colour scheme. Since the splits are drawn using the '|' character, the line will be broken rather than continuous which is unfortunate. Unless you can find a font that contains a full height bar (but remember that extended characters can't be used in options in the command line, but they can in the command window or in your vimrc).
If you do use a full height bar, you also need to make sure that 'linespace'
is set to 0
(it defaults to 1
in gvim on Windows).
Vim has different options for font style, used in hi
command.
for example: NONE, bold, underline, italic, reverse, undercurl..
for your needs, you could get your current highlighting of vertsplit by:
:hi VertSplit
From your screenshot, I guess you have gui(or term)=standout
try to change it into NONE
:
hi! VertSplit guifg=[yourFG] guibg=[YourBG] gui=NONE
or if you run vim in terminal:
hi! VertSplit ctermfg=[yourFG] ctermbg=[YourBG] term=NONE
this should give you a narrower split line.
check out :h hi
too see details
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With