bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Vi mode and g commands


From: Robert Elz
Subject: Re: Vi mode and g commands
Date: Mon, 08 Jun 2020 22:23:58 +0700

    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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]