Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Appearance of split lines in vim [closed]

Tags:

c

vim

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.

enter image description here

like image 227
prehistoricpenguin Avatar asked Dec 16 '22 17:12

prehistoricpenguin


1 Answers

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.

This uses fillchars+=vert:\

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
like image 182
Michael Berkowski Avatar answered Dec 21 '22 11:12

Michael Berkowski