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

Re: missing features for bindkey -v: @



Matthias Kopfermann wrote:
> i wrote it before but no reply.
> it seems i am the only one who misses the ability to 
> call macros like one normally does in vi with @.
> 
> again:
> 
> this macros begin with _ and a letter.

You don't need it, you can do it directly.

bindkey -s -M vicmd @a 'ai am interpreted as input\e'
           ^^^^^^^^
           this is the new (3.1) syntax for binding in vi command mode
           else use -a after bindkey -v.

It's not hard to implement a vi-call-alias command as a module, but
the above seems much simpler.

-- 
Peter Stephenson <pws@xxxxxx>       Tel: +49 33762 77366
WWW:  http://www.ifh.de/~pws/       Fax: +49 33762 77413
Deutsches Elektronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, Platanenallee 6, 15738 Zeuthen, Germany.



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