From 93cbaf6a699479969cd3d233eb974bf1424f6582 Mon Sep 17 00:00:00 2001 From: Jordan Holt Date: Tue, 1 Sep 2020 22:16:47 +0000 Subject: [PATCH] Remove zsh vi mode --- .config/zsh/.zshrc | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 240a839..f5bdff8 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -18,45 +18,12 @@ zmodload zsh/complist compinit _comp_options+=(globdots) # Include hidden files -# Vi keybindings -bindkey -v -bindkey -v '^?' backward-delete-char -bindkey -M menuselect 'h' vi-backward-char -bindkey -M menuselect 'j' vi-down-line-or-history -bindkey -M menuselect 'k' vi-up-line-or-history -bindkey -M menuselect 'l' vi-forward-char -bindkey '^[[P' delete-char -export KEYTIMEOUT=1 - # Colors autoload -U colors && colors # Prompt PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b " -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-line-init() { - # zle -K viins # initiate `vi insert` as keymap (can be removed if `bindkey -V` has been set elsewhere) - echo -ne "\e[5 q" -} - -zle -N zle-keymap-select -zle -N zle-line-init - -echo -ne '\e[5 q' # Beam cursor on startup -preexec() { echo -ne '\e[5 q' ;} # Beam cursor for new prompts - # Aliases source "${XDG_CONFIG_HOME:-${HOME}/.config}/.aliasrc"