From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24225 invoked from network); 29 Nov 2004 19:37:34 -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 19:37:34 -0000 Received: (qmail 86759 invoked from network); 29 Nov 2004 19:37:28 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 29 Nov 2004 19:37:28 -0000 Received: (qmail 8988 invoked by alias); 29 Nov 2004 19:36:34 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8241 Received: (qmail 8969 invoked from network); 29 Nov 2004 19:36:32 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 29 Nov 2004 19:36:32 -0000 Received: (qmail 84905 invoked from network); 29 Nov 2004 19:35:55 -0000 Received: from main.gmane.org (80.91.229.2) by a.mx.sunsite.dk with SMTP; 29 Nov 2004 19:35:54 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1CYrJS-0002yU-00 for ; Mon, 29 Nov 2004 20:35:54 +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 20:35:54 +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 20:35:54 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: zzapper Subject: Edit result of last command Date: Mon, 29 Nov 2004 19:35:47 +0000 Message-ID: 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 Hi say I've done a command a find/ls whatever eg >ls *add* which returns addition.html I can then type > vi $(!!) But that's way too tiring So I wrote the following function vr function vr () { gvim.exe $($(history -1 | sed "s/^ *[0-9]* *//g")) & } This does the trick, but how would you zedii do it? 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