vile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vile] Annoying difference between wrapmargin and fillcol


From: Thomas Dickey
Subject: Re: [vile] Annoying difference between wrapmargin and fillcol
Date: Mon, 5 May 2008 16:14:36 -0400 (EDT)

On Mon, 5 May 2008, Chris G wrote:

I'm have been using wrapwords and fillcol=70 instead of wrapmargin=10
for the past few weeks and there is an annoying difference between the
ways that the two approaches work.

When you set wrapmargin=10 then the moment a word *begins* to encroach
into the last ten columns of the window it is moved to the next line.
However when you have wrapwords and fillcol=70 the moving of a word to
the next line only occurs when you complete the word and type a space
after it.  This means that if you happened to complete a line with a
word that extends beyond column 70 and then stop insertion (end of
message, move to somewhere else, whatever) the word isn't wrapped.

offhand, I suppose we could change the behavior of wrapmargin so it's
relative to fillcol (though that would be a big change).  Adding a
mode to control that behavior would be less impact...

By the way, the one detail about

        :set file-encoding

that I don't like is that there's no good abbreviation for file-encoding. These are used: "fe" (fence) "fc" (fillcol). I'm considering adding "fk", which is less mnemonic than I like. But an abbreviation is needed, given
the number of times I use it...

So:

        :set fk=utf-8
        :set-fk utf-8 (like :set-unix, to reset the buffer's encoding)

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]