helm/zsh/config
2014-08-24 06:31:37 -04:00

30 lines
849 B
Bash

#!/bin/zsh
# Disable autocorrect behavior, very annoying!
# unsetopt correct_all
# Don't wait for keys (snappier vi-mode)
# export KEYTIMEOUT=1
zle -N edit-command-line
bindkey -v
bindkey '^f' edit-command-line
bindkey -M viins '^w' backward-kill-word
bindkey -M viins '^a' beginning-of-line
bindkey -M viins '^e' end-of-line
bindkey -M viins ' ' magic-space
bindkey -M viins 'jj' vi-cmd-mode
bindkey -M vicmd "q" push-line
# Incremental search is elite!
bindkey -M vicmd "/" history-incremental-search-backward
bindkey -M vicmd "?" history-incremental-search-forward
bindkey -M viins '^x^a' fasd-complete # C-x C-a to do fasd-complete (fils and directories)
bindkey -M viins '^x^f' fasd-complete-f # C-x C-f to do fasd-complete-f (only files)
bindkey -M viins '^x^d' fasd-complete-d # C-x C-d to do fasd-complete-d (only directories)