Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16369

Re: Vi mode and g commands

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: Vi mode and g commands
Date 2020-06-08 10:23 -0400
Organization ITS, Case Western Reserve University
Message-ID <mailman.1439.1591626205.2541.bug-bash@gnu.org> (permalink)
References <CADB0MOOUui+hUpwsNsX-XLxcjSfE+sEox8cRA4hG7x1ksT49zQ@mail.gmail.com> <9b2a7b21-be8a-1de7-6504-ab42b071f908@case.edu>

Show all headers | View raw


On 6/7/20 9:28 PM, Dan Shearer wrote:
> Some g commands are implemented, but incorrectly. Examples:
> * g0 is equivalent to 0, rather than 'beginning of screen line when wrapped'
> * g$ is equivalent to $, rather than 'end of screen line when wrapped'
> 
> Other g commands are not implemented, just ignored. Examples:
> * gM is ignored, rather than going to the middle of the line
> * gE is ignored, rather than going to the end of the last word

`g' isn't a valid command in POSIX sh vi editing mode (or vi itself).

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: Vi mode and g commands Chet Ramey <chet.ramey@case.edu> - 2020-06-08 10:23 -0400

csiph-web