Appearance of split lines in vim

c, vim

Solution

That settings is managed by the `fillchars` setting. To modify it to use a different character than `|`, use

" Set the vertical split character to +
:set fillchars+=vert:\+

" Set the vertical split character to  a space (there is a single space after '\ ')
:set fillchars+=vert:\ 

A single whitespace character for the vertical fillchar will make it so that your colorscheme's vertical split color is all you see.

Example using a single whitespace character as the second sample above. The colorscheme background color shows through.

The width of the split line is dependent upon the current font size. It is one character width of the current fixed-width font.

Read the documentation on `fillchars` with

:help fillchars

Problem

I would like to change the appearance of the vertical split division, which currently uses `|`. Is there a Vim setting, or can it be modified in the source code? Please give me some tips.

Original source