[Bug 281638] vi editor ( command -go to the previous sentence- stops at period + 1 space when shouldn't

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 21 Sep 2024 21:37:50 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281638

            Bug ID: 281638
           Summary: vi editor ( command -go to the previous sentence-
                    stops at period + 1 space when shouldn't
           Product: Base System
           Version: 14.1-STABLE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: llaquet@protonmail.com

Vi documentation says:

A sentence is defined to end at a '.', '!' or '?' which is followed by either
the end of a line, or by two spaces.

The ) command -go to the next sentence- works as expected, but the mirror
command ( considers that a period followed by just one space also marks the end
of a sentence, when it should not.

Being mirror commands, ( and ) should function in the same manner, so you can
navigate the document in one direction and the other the same way.

In my opinion, if this is going to be looked up and fixed, it'd be better to
take the opportunity to widen the definition of a sentence to the more "normal"
period + 1 space, so I would let ( as is and change ).

But if the objective is to follow the documentation, then I guess that the
opposite must be done.

Thank you for your time. I'm aware that this is not very important, but I think
it's good that at least gest hereby documented.

-- 
You are receiving this mail because:
You are the assignee for the bug.