<<< Date Index >>>     <<< Thread Index >>>

Re: :set wrapmargin=-72



On Tue, 12 Apr 2005, Elmar Loos wrote:

Reply to Thomas's Mail from Tue, Apr 12, 2005 at 02:01:53PM -0400.

Hallo Thomas,

  set wrapmargin=`echo $(( $COLUMNS - 72 ))`
no: $COLUMNS is not set in all configurations (it's something that you'll
see on platforms that assume some applications use termcap).
but with the new patch, it would work even if COLUMNS is not defined.
If $COLUMNS expands to nothing, the result will be -72.

That's not "working" - just providing a default value.
"Working" would be using the correct value (which is simple to obtain).

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