Index | Thread | Search

From:
Walter Alejandro Iglesias <wai@roquesor.com>
Subject:
Re: vi(1), removing unused variables
To:
Theo Buehler <tb@theobuehler.org>
Cc:
Claudio Jeker <cjeker@diehard.n-r-g.com>, tech@openbsd.org
Date:
Mon, 20 Apr 2026 12:53:31 +0200

Download raw body.

Thread
On Mon, Apr 20, 2026 at 12:32:00PM +0200, Theo Buehler wrote:
> > Since we're at it, how about we remove trailing white spaces?
> 
> I have landed a similar, more extensive diff.
> 
> In general, I would recommend not sending large whitespace-only diffs.

Yes, I understand why you advice me this.  I dared to because I use this
setting in vim which let me notice at a first sight if the diff is
right:


" Highligth trailing white space
highlight ExtraWhitespace ctermbg=blue guibg=grey
au ColorScheme * highlight ExtraWhitespace guibg=grey
au BufEnter * match ExtraWhitespace /\s\+$/
au InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
au InsertLeave * match ExtraWhiteSpace /\s\+$/


-- 
Walter