You are not logged in.

#1 2010-11-13 10:02:35

tlvince
Member
Registered: 2010-07-06
Posts: 68
Website

Using vim as a word processor

I'd like to write my structured documents in a decent editor. Working with text files all day as a programmer, vim is the natural choice, however I have some questions regarding configuring vim for this use-case. I'll start with:

Proportional fonts

Proportional fonts are much nicer to read for natural language text, so lets ditch monospace. Easier said then done. I envisage difficulty setting this up in urxvt ("design for today not tomorrow"), so I tried a Sans font (DejaVu Sans 9) in GVim first:

tNjU5aw

What's with the letter spacing? For comparison, here's the same thing in Zim (same font, same size):

tNjU5bQ

How can I get GVim's appearance to match Zim's?

Offline

#2 2010-11-13 10:22:02

mikesd
Member
From: Australia
Registered: 2008-02-01
Posts: 788
Website

Re: Using vim as a word processor

ViM is console based and therefore is designed to use a monospace font. GViM is a GUI wrapped around ViM and it therefore it also is designed to use a monospace font. I think there has been talk about using proportional fonts with GViM in the past, not sure what stage they got to with it. If you want proportional fonts you may need to pick another editor.

Offline

#3 2010-11-13 11:24:45

Pank
Member
From: IT
Registered: 2009-06-13
Posts: 371

Re: Using vim as a word processor

(Almost) needless to say that Emacs does what you want. . .


Arch x64 on Thinkpad X200s/W530

Offline

#4 2010-11-13 14:24:19

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: Using vim as a word processor

GVim is not designed to properly display proportional fonts.

I use gedit in those cases (and to work with more complex fonts like indic scripts).
Emacs behaves properly as well but you have to get accustomed to the vim-alien user interface (it is possible to use both in parallel, I regularly use vim but have emacs for lisp sources, for example).

Last edited by bernarcher (2010-11-13 14:25:41)


To know or not to know ...
... the questions remain forever.

Offline

#5 2010-11-13 16:12:07

Pank
Member
From: IT
Registered: 2009-06-13
Posts: 371

Re: Using vim as a word processor

I have never tried it, but Emacs include Viper-mode

Technically speaking, Viper is a Vi emulation package for Emacs.  It
implements all Vi and Ex commands, occasionally improving on them and
adding many new features.  It gives the user the best of both worlds: Vi
keystrokes for editing combined with the power of the Emacs environment.

This is probably not news, though.


Arch x64 on Thinkpad X200s/W530

Offline

#6 2010-11-15 16:37:53

tlvince
Member
Registered: 2010-07-06
Posts: 68
Website

Re: Using vim as a word processor

After tweaking my search terms (confirmed by your helpful replies), it doesn't look good. Shame.

Pank wrote:

I have never tried it, but Emacs include Viper-mode

Thanks for the heads up. I'll give it a go.

Last edited by tlvince (2010-11-16 02:02:22)

Offline

Board footer

Powered by FluxBB