Index | Thread | Search

From:
Todd C. Miller <millert@openbsd.org>
Subject:
Re: vi(1) issue with '!)fmt' at the EOF
To:
"Andy Bradford" <amb-sendok-1782225048.ncobdjbjffjhedmoeolk@bradfords.org>
Cc:
"Walter Alejandro Iglesias" <wai@roquesor.com>, tech@openbsd.org
Date:
Fri, 24 Apr 2026 09:33:09 -0600

Download raw body.

Thread
  • Andy Bradford:

    vi(1) issue with '!)fmt' at the EOF

    • Todd C. Miller:

      vi(1) issue with '!)fmt' at the EOF

  • Walter Alejandro Iglesias:

    vi(1) issue with '!)fmt' at the EOF

  • On 24 Apr 2026 08:30:48 -0600, "Andy Bradford" wrote:
    
    > For the  example provided To  be considered a  sentence, it must  have 2
    > spaces trailing the period.
    
    This points out another bug/inconsistency, this time with '('.  It
    looks like '(' and ')' are inconsistent in their handling of sentences
    with only a single space.
    
    Given the same text, if you position the cursor at EOF (or inside
    the second sentence) and use '(' it will go to the start of the
    second sentence, even though there is only a single space after the
    period.  Historic vi goes all the way to the "Lorem", which is the
    documented behavior.
    
    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.
    
    
  • Andy Bradford:

    vi(1) issue with '!)fmt' at the EOF

  • Walter Alejandro Iglesias:

    vi(1) issue with '!)fmt' at the EOF