bug-bash
[Top][All Lists]
Advanced

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

Re: command line vi style editing - is that possible?


From: Chet Ramey
Subject: Re: command line vi style editing - is that possible?
Date: Fri, 18 Jul 2008 17:13:00 -0400
User-agent: Thunderbird 2.0.0.14 (Macintosh/20080421)

ggolub wrote:
Hi folks.
I am new to bash. I was using korn for long time. One of the feature I
really miss is command line vi editing.
Here is an example:
osql -E -S.<<!
select name from sysdatabases
go
!
This code will connect to sql database and return name of existing db's. If i want to re-run and edit this execution in korn, i would press: Esc,
--... untill i see this line of execution. At that time if i press 'v',
whole multi line will open in vi editor, where i can edit it and after 'zz',
it will execute it.
What I can achieve with bash is next: when I run 'set -o vi', i can scroll
history file. But it only shows me first line. I can't get it into vi too.
Do you know how I can get similar and convenient command line handling in
bash as I had one with korn/

This isn't really a problem with vi editing.  The bash command history
doesn't store the contents of here-documents in the history list.  I
will look at adding that in a future version.

Chet

--
``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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