Index | Thread | Search

From:
Todd C. Miller <millert@openbsd.org>
Subject:
Re: vi(1) issue with '!)fmt' at the EOF
To:
Walter Alejandro Iglesias <wai@roquesor.com>
Cc:
tech@openbsd.org
Date:
Thu, 23 Apr 2026 20:32:59 -0600

Download raw body.

Thread
On Thu, 23 Apr 2026 15:20:57 +0200, Walter Alejandro Iglesias wrote:

> In a sentence of more than one line, ')fmt' won't format the last line
> of the file, *depending on which column you have the cursor*.

What I see is that, given a file like this:

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

If I run !)fmt from column 0, the last line is not filtered.  If
the cursor is not in column 0, the file is filtered as I would
expect.

Is that the issue you are describing, or is it something different?

 - todd