Hi, zzapper wrote: > 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? function VR() { BUFFER='gvim.exe $(!!)' } zle -N VR bindkey vr VR Ciao, Thomas -- Thomas Köhler Email: jean-luc@picard.franken.de <>< WWW: http://gott-gehabt.de IRC: tkoehler PGP public key available from Homepage!