Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
getting zle vi-modes to show the current mode
- X-seq: zsh-users 10974
 
- From: "Matt Wozniski" <godlygeek@xxxxxxxxx>
 
- To: zsh-users@xxxxxxxxxx
 
- Subject: getting zle vi-modes to show the current mode
 
- Date: Mon, 13 Nov 2006 14:27:07 -0500
 
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws;        s=beta; d=gmail.com;        h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition;        b=n6GvlPcQwTD+0fWzZ0tE7/rzky0J/ZD3XPNzJt0l4SCsat9mfe9rUnwLa1+fdvTmqvZqOnRiKGXKEFy9l1UT6yBFXuFL2sBUAa6z2NexuI9FibpGE7IU8LR5ahZp9UomFOsUgYzsTe4T4t6YsxDgdHwf0+a5AfIFkojbDr/Mm9w=
 
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
 
- Reply-to: mjw@xxxxxxxxxx
 
Hello all,
I'm pretty usre that if I could just get used to it, I'd like
vi-keybindings on the prompt more than emacs ones, but I keep losing
track of whether I'm in insert or command mode.  Can anyone suggest a
simple way to have zsh display the current mode under the prompt (or
in the prompt), a la vim?  I'm sure I could do it by replacing every
function in the vi-mode keymaps with something like
function my-vi-insert {
 zle -M "--INSERT--"
 zle .vi-insert
}
but I'd like to avoid the trouble if there's a better way.  :)
~Matt
Messages sorted by:
Reverse Date,
Date,
Thread,
Author