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

Re: alias vl="vi !$"



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