From: Todd C. Miller Subject: Re: vi(1) issue with '!)fmt' at the EOF To: "Andy Bradford" Cc: "Walter Alejandro Iglesias" , tech@openbsd.org Date: Fri, 24 Apr 2026 09:33:09 -0600 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.