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

Re: bindkey -v and alt-. for previous cmd arg



    Hi Nick :)

 * Nick Croft <nicko@xxxxxxxxxxx> dixit:
> >     I don't use zsh 4.2.x yet, but it seems that your problem is that
> > 'Alt-.' is no longer bound in the 'viins' keymap. Do it yourself:
> > 
> >     bindkey -m viins '\e.' insert-last-word
> > 
> >     Note that I've used 'Esc-.' instead of 'Alt-.' because I don't
> > know how to bind Alt sequences :? In fact, 'insert-last-word' is
> > bound to 'Esc-.' by default in 4.0.9
> > 
> >     Hope this helps.
> > 
> That DID help. Actually zsh didn't accept so many arguments, so 
> I used "bindkey '\e.' insert-last-word". This seems to allow the widget to
> be used with alt as well.

    Sorry, my fault. You cannot select a keymap and bind a key at the
same time. Anyway, since you already did 'bindkey -v' the 'viins'
keymap is selected so the key binding is placed in the appropriate
place.

    Just one more question: do your 'alt-.' key combo works the same
as 'esc-.'? Here I only can do the 'esc-.' combo, the alt-. doesn't
work because I don't have any action defined for 'alt-.' in my keymap
(I use Linux). Just curiosity O:)

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736
http://www.dervishd.net & http://www.pleyades.net/



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