Change vim vertsplit symbol to │

This, I suppose, is encoding related, but it doesn't hurt to ask.

Like one, on windows xp cmd, gvim 7.2 change the vertsplit character to instead of default | is it │ (so that it makes a complete, not a split line)?

This symbol usually changes with

set fillchars=vert:\| 

and I can copy the ascii graphic line insert, but it appears like garbage. I suppose I would have to change the internal vim codepage so that it displays correctly?

Does anyone know how to do this?

+7
vim
source share
4 answers

Well, I'm very late to the party, but that's what I'm doing.

The way characters are displayed depends on the font, so you can get a continuous line using some fonts, not others. I found that using one of the following options gives me a continuous line.

  • Menlo
  • Monaco
  • Inconsolata li>
  • DejaVu Sans Mono
  • Consolas
  • Bitrate Vera Sens Mono

As for the settings, that's enough. Please note that this is different from | the character that is usually present on the keyboard.

 set fillchars=vert:\│ 
+9
source share

I tried the following:

 set enc=utf-8 set fillchars=vert:\│ 

And it worked, but the result was not good, as you can hope, this is not a complete line (using the Consolas font, if you get a straight line with a different font, I would be interested to know one).

+5
source share

This is not exactly what you want, but I set fillchars=\ and just use the highlight to color the empty space of a different color. He is less elegant, but I'm fine.

+1
source share

Digging into the digraph table, I found that Vertical Charts for Boxes is ideal for this purpose. Vim: │ vv 2502 9474 BOX DRAWINGS LIGHT VERTICAL To use it, press <ck>vv in the input or command mode to get a character (see :h i_CTRL-K ).
As pointed out by others, the setting is applied using set fillchars=vert:|

+1
source share

All Articles