Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #16372
| From | Robert Elz <kre@munnari.OZ.AU> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: Vi mode and g commands |
| Date | 2020-06-08 22:23 +0700 |
| Message-ID | <mailman.1447.1591629887.2541.bug-bash@gnu.org> (permalink) |
| References | <20200608133434.GA4133@eeg.ccf.org> <CADB0MOOUui+hUpwsNsX-XLxcjSfE+sEox8cRA4hG7x1ksT49zQ@mail.gmail.com> <16732.1591629838@jinx.noi.kre.to> |
Date: Mon, 8 Jun 2020 09:34:34 -0400
From: Greg Wooledge <wooledg@eeg.ccf.org>
Message-ID: <20200608133434.GA4133@eeg.ccf.org>
| Those are not standard vi commands, as far as I can tell.
You're right, they're not.
| g$ acts just like $.
| g0 acts just like 0.
| gE acts just like E
None of these are surprising, or shouldn't be, there's no 'g'
command in vi, the 'g' is just an error (should really flash the
screen or something) - then whatever follows it is just the next
command.
| I see no evidence that 'g' is even a meaningful keystroke in real vi.
| Maybe that's why vim chose it as the prefix for so many of their
| extension commands.
That's correct, there is no 'g' in vi, and as an explanation, that
makes sense.
kre
Back to gnu.bash.bug | Previous | Next | Find similar
Re: Vi mode and g commands Robert Elz <kre@munnari.OZ.AU> - 2020-06-08 22:23 +0700
csiph-web