Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: alias vl="vi !$"
- X-seq: zsh-users 7139
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: alias vl="vi !$"
- Date: Thu, 11 Mar 2004 13:23:13 +0000
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <65a050lf2u4bjch4u2uv68q56u5co0gknp@xxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
On Thu, 11 Mar 2004 08:59:16 +0000, wrote:
>Hi,
>I've often wanted to have aliases such
>
>alias vl="vi !$" where !$ is the command line "last parameter"
>
Tejmo emailed me this solution which works!!
vl () {
gvim.exe $(history -1 | sed "s/.* //g")
}
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author