Skip to content

Instantly share code, notes, and snippets.

@ryaminal
Created February 22, 2016 21:16
Show Gist options
  • Save ryaminal/407470333ec9b27e2faf to your computer and use it in GitHub Desktop.
Save ryaminal/407470333ec9b27e2faf to your computer and use it in GitHub Desktop.
bindkey '^P' up-history
bindkey '^N' down-history
bindkey '^?' backward-delete-char
bindkey '^h' backward-delete-char
bindkey '^w' backward-kill-word
bindkey '^r' history-incremental-search-backward
function zle-line-init zle-keymap-select {
VIM_PROMPT="%{$fg_bold[yellow]%} [% NORMAL]% %{$reset_color%}"
RPS1="${${KEYMAP/vicmd/$VIM_PROMPT}/(main|viins)/}$(git_custom_status) $EPS1"
zle reset-prompt
}
zle -N zle-line-init
zle -N zle-keymap-select
export KEYTIMEOUT=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment