From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9412 invoked from network); 29 Nov 2004 21:55:16 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 29 Nov 2004 21:55:16 -0000 Received: (qmail 65776 invoked from network); 29 Nov 2004 21:55:11 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 29 Nov 2004 21:55:11 -0000 Received: (qmail 21843 invoked by alias); 29 Nov 2004 21:54:21 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8247 Received: (qmail 21826 invoked from network); 29 Nov 2004 21:54:20 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 29 Nov 2004 21:54:20 -0000 Received: (qmail 64017 invoked from network); 29 Nov 2004 21:53:21 -0000 Received: from main.gmane.org (80.91.229.2) by a.mx.sunsite.dk with SMTP; 29 Nov 2004 21:53:20 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1CYtSR-00051O-00 for ; Mon, 29 Nov 2004 22:53:19 +0100 Received: from cpc2-oxfd4-4-0-cust104.oxfd.cable.ntl.com ([80.3.246.104]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 29 Nov 2004 22:53:19 +0100 Received: from david by cpc2-oxfd4-4-0-cust104.oxfd.cable.ntl.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 29 Nov 2004 22:53:19 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: zzapper Subject: Re: Edit result of last command Date: Mon, 29 Nov 2004 21:53:15 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: cpc2-oxfd4-4-0-cust104.oxfd.cable.ntl.com X-Newsreader: Forte Free Agent 2.0/32.652 Sender: news X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: * X-Spam-Status: No, hits=1.5 required=6.0 tests=BAYES_44,RCVD_IN_SORBS autolearn=no version=2.63 X-Spam-Hits: 1.5 On Mon, 29 Nov 2004 12:02:11 -0800 (PST), wrote: >On Mon, 29 Nov 2004, zzapper wrote: > >> say I've done a command a find/ls whatever >[...] >> This does the trick, but how would you zedii do it? > >Don't you remember the "Tip of the day: previous command output" thread >from back in August? Sorry Bart, I got overloaded at that time! > > keep *add* > vi $kept > >or > > find . -name '*add*' -print | keep > vi $kept > >or any one of several completion-based variants also in that thread. > >I also have this pair of keybindings: > > bindkey "^[f" forward-word > bindkey -s "^[v" '^E)^Avi $(^[f" > >which means I scroll back in the history to the command I want to capture > > ls *add* > >then type esc-v and end up with > > vi $(ls *add*) > ^ >with the cursor here, so I can modify the options (add -l to grep, or >remove -l from ls, etc.). zzapper (vim, cygwin, wiki & zsh) -- vim -c ":%s%s*%CyrnfrTfcbafbeROenzSZbbyranne%|:%s)[R-T]) )Ig|:norm G1VGg?" http://www.vim.org/tips/tip.php?tip_id=305 Best of Vim Tips