I'm wondering whether changing the space between lines is possible.
How can I change "Line spacing"?
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this communityDidn't expect this to be possible, but there is actually an option for this. 'linespace'
:
'linespace'
'lsp'
Number of pixel lines inserted between characters. Useful if the font uses the full character cell height, making lines touch each other. When non-zero there is room for underlining. With some fonts there can be too much room between lines (to have space for ascents and descents). Then it makes sense to set 'linespace' to a negative value. This may cause display problems though!
It differs from your picture in that the option defines extra space added rather than distance between baselines, but should give you enough control anyway.
You need to add something like this to your .vimrc
:
set linespace=3
For obvious reasons it will work only in gvim and not in terminal vim.
'linespace'
blank lines between lines.
Apr 29, 2019 at 14:08