Fix (forward|backward)-word keybinds & unsetopt correct_all
This commit is contained in:
parent
af87f76545
commit
83863f0d34
16
zsh/config
16
zsh/config
|
@ -1,23 +1,27 @@
|
|||
export GIT_MERGE_AUTOEDIT=no
|
||||
|
||||
# Disable autocorrect behavior, very annoying!
|
||||
# unsetopt correct_all
|
||||
unsetopt correct_all
|
||||
|
||||
autoload -Uz zmv
|
||||
|
||||
|
||||
#################
|
||||
# Keybindings #
|
||||
#################
|
||||
|
||||
zle -N edit-command-line
|
||||
bindkey -v
|
||||
bindkey '^ ' 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 '[w' forward-word
|
||||
bindkey -M viins '[b' backward-word
|
||||
bindkey -M viins '^[w' forward-word
|
||||
bindkey -M viins '^[b' backward-word
|
||||
|
||||
bindkey -M viins ' ' magic-space
|
||||
bindkey -M viins 'jk' vi-cmd-mode
|
||||
|
||||
bindkey -M vicmd "q" push-line-or-edit
|
||||
|
||||
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)
|
||||
|
||||
|
|
|
@ -1,8 +1,11 @@
|
|||
# Sets Prezto options.
|
||||
|
||||
[[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]
|
||||
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
|
||||
|
||||
# General
|
||||
|
||||
zstyle ':prezto:module:prompt' theme 'my'
|
||||
zstyle ':prezto:module:prompt' theme 'v0'
|
||||
|
||||
# Set case-sensitivity for completion, history lookup, etc.
|
||||
# zstyle ':prezto:*:*' case-sensitive 'yes'
|
||||
|
|
Loading…
Reference in a new issue