| Subject: | Re: command line vi style editing - is that possible? |
|---|---|
| From: | Chet Ramey <chet.ramey@xxxxxxxx> |
| Date: | Fri, 18 Jul 2008 17:13:00 -0400 |
| Newsgroups: | gnu.bash.bug |
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@xxxxxxxx http://cnswww.cns.cwru.edu/~chet/ |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: inconsistent treatment of backslash-bang, Chet Ramey |
|---|---|
| Next by Date: | Re: inconsistent treatment of backslash-bang, Lawrence D'Oliveiro |
| Previous by Thread: | command line vi style editing - is that possible?, ggolub |
| Next by Thread: | "address@hidden" strings in the web archive, Poor Yorick |
| Indexes: | [Date] [Thread] [Top] [All Lists] |