2014-07-17 01:26:38 -07:00
|
|
|
#!/bin/zsh
|
|
|
|
|
2013-03-21 19:24:13 -07:00
|
|
|
# Disable autocorrect behavior, very annoying!
|
2014-08-07 15:32:16 -07:00
|
|
|
# unsetopt correct_all
|
|
|
|
|
2014-07-29 02:24:29 -07:00
|
|
|
# Don't wait for keys (snappier vi-mode)
|
2014-08-21 00:28:28 -07:00
|
|
|
# export KEYTIMEOUT=1
|
2013-08-04 02:04:37 -07:00
|
|
|
|
2013-08-02 12:37:20 -07:00
|
|
|
zle -N edit-command-line
|
2013-08-04 02:04:37 -07:00
|
|
|
bindkey -v
|
2013-08-02 12:37:20 -07:00
|
|
|
bindkey '^f' edit-command-line
|
|
|
|
|
2014-08-12 22:19:03 -07:00
|
|
|
bindkey -M viins '^w' backward-kill-word
|
|
|
|
bindkey -M viins '^a' beginning-of-line
|
|
|
|
bindkey -M viins '^e' end-of-line
|
2014-08-21 00:28:28 -07:00
|
|
|
|
|
|
|
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
|
2014-08-24 03:31:37 -07:00
|
|
|
|
|
|
|
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)
|