Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: bindkey -v and alt-. for previous cmd arg
- X-seq: zsh-users 8154
- From: DervishD <zsh@xxxxxxxxxxxx>
- To: Nick Croft <nicko@xxxxxxxxxxx>
- Subject: Re: bindkey -v and alt-. for previous cmd arg
- Date: Wed, 3 Nov 2004 20:57:00 +0100
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <20041103194444.GB1476@xxxxxxxx>
- Mail-followup-to: Nick Croft <nicko@xxxxxxxxxxx>, zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: DervishD
- References: <20041103124858.GA1476@xxxxxxxx> <20041103135335.GB22247@DervishD> <20041103194444.GB1476@xxxxxxxx>
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