qdwang
qdwang

Reputation: 445

Setting linespace in gVim

When setting linespace to some value greater than zero, the characters in the line are vertically top-aligned. I want the characters to be vertically centered (in the middle of the line).

Example screenshot

Upvotes: 0

Views: 796

Answers (1)

Ingo Karkat
Ingo Karkat

Reputation: 172698

The 'linespace' setting allows to slightly adapt the visual spacing of lines to the used font (so that text is neither too dense nor too much apart). It is not meant to be used for the "widely-spaced lines" effect shown in your screenshot.

If you really need something like that, you'd need to patch Vim's source code, or use another editor, or what I would attempt is modifying the used font to include more vertical padding in all glyphs.

Upvotes: 1

Related Questions