'Vim split bar styling

How do I style or remove the grey bar that appears on window split?

enter image description here

vim


Solution 1:[1]

highlight VertSplit cterm=NONE

Solution 2:[2]

I kind of tweak it a little to make it look like there is no splitbar with something like this

hi LineNr guibg=bg
set foldcolumn=2
hi foldcolumn guibg=bg
hi VertSplit guibg=bg guifg=bg

Note that I'm using gvim so I'm using guibg to change the background guifg to change the foreground with the same color of my vim's background, if you're not using a gui and you're on terminal vim you should change the guibg and guifg parameters for ctermbg and ctermfg

Solution 3:[3]

If you add a comment with " after the whitespace, you don't have a trailing white space. I don't like these, so my vim config shows them (vim-airline plugin) and I remove them regularly.

:set fillchars+=vert:\ "White space at the end

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 phil pirozhkov
Solution 2
Solution 3 SurfSimon