Sunday, January 24, 2010

Re: Line Spacing for beter reading text

> I'm using vim to write « literature » texts. Not code (ok I
> use vim for editing my linux config too…) but dense texts.
> Lines are longs, I use warp, so it make me large blocs of
> texts. Hard to read. For me the solution would be to be able
> to set the line spacing (and maybe non-propotional fonts, it's
> an other subject) to something like 1,5 or 2.

In gvim (not sure you can do it in (non-g)vim, though your
terminal may offer some similar setting), you can set the
'linespace' option to something other than 0 for wider leading.

:help 'linespace'
:set lsp=10 "or whatever feels comfortable to you

The units are pixels.

As an aside, I've found that some GUI fonts leave artifacts that
gvim doesn't clean up (mostly noticed on Win32, but I tend to use
(non-g)vim most of the time on *nix, so I can't speak much to
gvim-on-*nix visual artifacts), but that setting a larger 'lsp'
value helps it clean them up.

There's a parallel thread on the ML regarding monospaced vs.
proportional fonts -- I believe in one of the environments
(GTK2?) you can specify that vim *displays* a proportional font,
but it does it in a monospaced fashion which just looks *REALLY*
ugly, IMHO :)

Hope this helps,

-tim

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments: