Browse Source

Enable vim bindings in zsh

coc
Schneider 7 years ago
parent
commit
d2305383ab
  1. 19
      zsh/custom.zsh

19
zsh/custom.zsh

@ -1,3 +1,22 @@
# vim bindings
bindkey -v
export KEYTIMEOUT=1
# Use vim cli mode
bindkey '^P' up-history
bindkey '^N' down-history
# backspace and ^h working even after
# returning from command mode
bindkey '^?' backward-delete-char
bindkey '^h' backward-delete-char
# ctrl-w removed word backwards
bindkey '^w' backward-kill-word
# ctrl-r starts searching history backward
bindkey '^r' history-incremental-search-backward
if [ "light" = "$THEME_SWITCHER" ]; then
ZSH_THEME="sunrise"
else

Loading…
Cancel
Save