dotfiles

My dotfiles, nothing really interesting to see ...
git clone https://git.onna.be/dotfiles.git
Log | Files | Refs | README

commit c141bd509ba14fd8961f174f75f8d2c017ffd83a
parent 658ada6dd88620dc132cc1f57c42c9ba319630e4
Author: Paco Esteban <paco@onna.be>
Date:   Wed,  4 Jul 2018 18:20:02 +0200

Marking zsh zle vim normal mode

I may play with this a bit ... as it does not look how I like ...

Diffstat:
zsh/.zsh/vim_mode.zsh | 11+++++++++++
zsh/.zshrc | 1+
2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/zsh/.zsh/vim_mode.zsh b/zsh/.zsh/vim_mode.zsh @@ -0,0 +1,11 @@ +# right hand side indicator for normal mode +function zle-line-init zle-keymap-select { + VIM_PROMPT="%K{57}[ %F{226}N%f ]%k" + RPS1="${${KEYMAP/vicmd/$VIM_PROMPT}/(main|viins)/}" + zle reset-prompt +} + +zle -N zle-line-init +zle -N zle-keymap-select +# wait less time between keys (200ms) +export KEYTIMEOUT=2 diff --git a/zsh/.zshrc b/zsh/.zshrc @@ -39,3 +39,4 @@ bindkey -M vicmd V edit-command-line source $HOME/.zsh/includes.zsh source $HOME/.zsh/aliases.zsh source $HOME/.zsh/theme.zsh +source $HOME/.zsh/vim_mode.zsh