vdotfiles

Cem's Dotfiles for Void Linux
git clone git://git.ckyln.com/vdotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit b04d1cefce8b54a1276c32b0af0bb8c3303ddd66
parent 69864bde9ecc002f2159d911a49c5850cbe76d9a
Author: Cem Keylan <cem@ckyln.com>
Date:   Mon, 14 Oct 2019 12:51:11 +0300

change cursor shape for different vi modes

Diffstat:
M.zshrc | 15+++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)

diff --git a/.zshrc b/.zshrc @@ -128,5 +128,20 @@ lfcd () { fi } +# Stolen from Luke Smith +# Change cursor shape for different vi modes. +function zle-keymap-select { + if [[ ${KEYMAP} == vicmd ]] || + [[ $1 = 'block' ]]; then + echo -ne '\e[1 q' + elif [[ ${KEYMAP} == main ]] || + [[ ${KEYMAP} == viins ]] || + [[ ${KEYMAP} = '' ]] || + [[ $1 = 'beam' ]]; then + echo -ne '\e[5 q' + fi +} +zle -N zle-keymap-select + export VIMUP=TRUE source $HOME/.profile