Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: getting zle vi-modes to show the current mode
- X-seq: zsh-users 10991
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: getting zle vi-modes to show the current mode
- Date: Wed, 15 Nov 2006 21:19:51 -0800
- In-reply-to: <17393e3e0611142130n799fa986x312f4053f8b58a70@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <17393e3e0611131127h75caa46es184b80fe17f13c49@xxxxxxxxxxxxxx> <061114111310.ZM20545@xxxxxxxxxxxxxxxxxxxxxx> <17393e3e0611142130n799fa986x312f4053f8b58a70@xxxxxxxxxxxxxx>
On Nov 14, 9:31pm, Matt Wozniski wrote:
}
} If anyone can make any suggestions for improvements, I'd be happy to
} hear them.
How about:
function zle-line-init zle-keymap-select {
RPS1="${${KEYMAP/vicmd/-- NORMAL --}/(main|viins)/-- INSERT --}"
RPS2=$RPS1
RPS3=$RPS1
RPS4=$RPS1
zle reset-prompt
}
zle -N zle-line-init
zle -N zle-keymap-select
Messages sorted by:
Reverse Date,
Date,
Thread,
Author