[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] gv in vi mode with multiple lines
From: |
Chet Ramey |
Subject: |
Re: [Help-bash] gv in vi mode with multiple lines |
Date: |
Mon, 2 Jul 2012 10:03:06 -0400 |
> > Readline only works a line at a time. If the calling application needs to
> > build commands of more than one line, like bash, it constructs them from
> > multiple calls to readline. Bash does its best to retrieve mult-line
> > commands from the history list and allow the `v' command to edit them, but
> > it can always be made better.
>
> Just to make sure. So you mean that there is no way to allow
> multi-line for my example in bash yet, but it can be improved. Right?
Sure, anything can be improved if it doesn't do what you want. Take a
crack at it.
> >> BTW, I don't find where the description of the gv usage. Could anybody
> >
> > I'm not sure what you're trying to do with the `g, since it's not bound to
> > anything. The `v' command is described in
>
> I didn't know g was not necessary. My mistake.
>
> > http://pubs.opengroup.org/onlinepubs/9699919799/utilities/sh.html#tag_20_117_13_03
>
> This is from sh. Shall you added the document to man bash?
The bindable command is named `edit-and-execute-command', which is already
documented in bash.1. The vi-mode bindings are what's not listed, but you
have to stop somewhere -- the document is already 75 pages.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU address@hidden http://cnswww.cns.cwru.edu/~chet/