Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Nov 2023 03:36:07 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 275400] vi arrow keys to beginning or end of line causes mode to change into command mode
Message-ID:  <bug-275400-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275400

            Bug ID: 275400
           Summary: vi arrow keys to beginning or end of line causes mode
                    to change into command mode
           Product: Base System
           Version: Unspecified
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: pyrus@bsdmail.com

This has been a feature of vi, since I've used FreeBSD 6.0 and still is now=
. It
might have been like this or may still be on Linux. I didn't see it as a bug
then, but as a not helpful feature, but it can be improved. Using FreeBSD 1=
4.0
now.

When in append or insert mode, using the arrow key to bring the cursor to t=
he
beginning or end of a line causes it to change into command mode. It has be=
en
inconvenient for editing files where a "#" has to be inserted or removed at=
 the
start of many lines, such as KERNCONF.

I didn't notice this part before, when I go to the beginning of a line, it =
also
reads, "Already in the first column; vi command failed: mapped keys discard=
ed".
There's a similar message when going to the beginning of a line, with "Alre=
ady
at end-of-line". This shows as it goes from insert mode to command mode. It=
's
like this also for using the arrow key to go to the beginning or end of the
file.

We don't as often go to the beginning or end of a file, as going to the sta=
rt
or end of each line is more common. It would be important to change the
characteristics of going to the beginning or end of a line.

Thank you

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-275400-227>