From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26447 invoked from network); 11 Mar 2004 12:27:28 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 11 Mar 2004 12:27:28 -0000 Received: (qmail 18725 invoked by alias); 11 Mar 2004 12:26:57 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7134 Received: (qmail 18713 invoked from network); 11 Mar 2004 12:26:56 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 11 Mar 2004 12:26:56 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [80.91.224.249] by sunsite.dk (MessageWall 1.0.8) with SMTP; 11 Mar 2004 12:26:55 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1B1PH5-0000MD-00 for ; Thu, 11 Mar 2004 13:26:55 +0100 Received: from cpc3-oxfd4-4-0-cust194.oxfd.cable.ntl.com ([80.3.247.194]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Mar 2004 13:26:55 +0100 Received: from david by cpc3-oxfd4-4-0-cust194.oxfd.cable.ntl.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Mar 2004 13:26:55 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: zzapper Subject: Re: alias vl="vi !$" Date: Thu, 11 Mar 2004 12:26:52 +0000 Message-ID: <4im0509toihq2ef1vlnnid6t93j90f6gor@4ax.com> References: <65a050lf2u4bjch4u2uv68q56u5co0gknp@4ax.com> <20040311091003.GD844@mail.guild.uwa.edu.au> 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: cpc3-oxfd4-4-0-cust194.oxfd.cable.ntl.com X-Newsreader: Forte Free Agent 1.93/32.576 English (American) Sender: news On Thu, 11 Mar 2004 17:10:03 +0800, James Devenish >on Thu, Mar 11, 2004 at 08:59:16AM +0000, zzapper wrote: >> alias vl="vi !$" where !$ is the command line "last parameter" >> >> Doesn't work though, is there any way to do this kind of thing? > >Make your own 'function' named `vl`? > > Do I have access to the positional parameters of the previous command line /history from inside a function? zzapper (vim & cygwin & zsh) -- vim -c ":%s/^/WhfgTNabgureRIvzSUnpxre/|:%s/[R-T]/ /Ig|:normal ggVGg?" http://www.vim.org/tips/tip.php?tip_id=305 Best of Vim Tips