diff options
author | Hendrik Jaeger <jaeger@gyselroth.com> | 2014-11-21 10:51:38 +0100 |
---|---|---|
committer | Hendrik Jaeger <jaeger@gyselroth.com> | 2014-11-21 10:51:38 +0100 |
commit | 44934b91a195f654e812a27282f1c173bc472025 (patch) | |
tree | 844f6acf2f277c66a64df5f38629c0582a5cfcde /.zshrc | |
parent | d121eb2f98e35ec2efcac978fbfd2495375e65aa (diff) |
Added vi-mode bindings and set default to vi-mode.
Minor cleanup.
modified: .zsh_functions
deleted: .zshcomprc
modified: .zshrc
Diffstat (limited to '.zshrc')
-rw-r--r-- | .zshrc | 24 |
1 files changed, 22 insertions, 2 deletions
@@ -1,10 +1,15 @@ autoload -Uz vcs_info +autoload -U edit-command-line . ~/.zsh_comprc . ~/.zsh_functions . ~/.zsh_aliases . ~/.zsh_local +zle -N zle-line-init +zle -N zle-keymap-select +zle -N edit-command-line + HISTFILE=~/.zsh_history HISTSIZE=5000 SAVEHIST=3000 @@ -44,7 +49,22 @@ setopt AUTO_CONTINUE setopt NO_BG_NICE setopt LONG_LIST_JOBS -bindkey -e +bindkey -v + +# 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 -#read -q "REPLY?Exec to fish? " && exec fish -i +# ctrl-r starts searching history backward +bindkey '^r' history-incremental-search-backward +# v in command mode starts editor for current line +bindkey -M vicmd v edit-command-line |