Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Picking parameters from last but one command



On Sun, Jan 07, 2007 at 05:45:00PM +0000, zzapper wrote:
> Jean-Rene David <jrdavid@xxxxxxxx> wrote in news:20070106194204.GB10778
> @princo:
> 
> > * zzapper [2007.01.06 14:15]:
> >> >ls fred.txt
> >> >cp joe sid
> >> >vi LP      (where LP picks up fred.txt)
> >> 
> >> Better way?
> > 
> > Perhaps:
> > 
> > vi !-2:$
> > 
> Yep I guess that's cool (and I know that very well, must have had a blond 
> moment) and pretty much invalidates what I was trying to do , just a bit of a 
> pain to type 
[...]

See also

vi <Alt-_><Alt-_>

(in emacs mode)

-- 
Stéphane



Messages sorted by: Reverse Date, Date, Thread, Author