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
|
export GIT_MERGE_AUTOEDIT=no
|
||||||
|
|
||||||
# Disable autocorrect behavior, very annoying!
|
# Disable autocorrect behavior, very annoying!
|
||||||
# unsetopt correct_all
|
unsetopt correct_all
|
||||||
|
|
||||||
|
autoload -Uz zmv
|
||||||
|
|
||||||
|
|
||||||
|
#################
|
||||||
|
# Keybindings #
|
||||||
|
#################
|
||||||
|
|
||||||
zle -N edit-command-line
|
|
||||||
bindkey -v
|
bindkey -v
|
||||||
bindkey '^ ' edit-command-line
|
bindkey '^ ' edit-command-line
|
||||||
|
|
||||||
bindkey -M viins '^w' backward-kill-word
|
bindkey -M viins '^w' backward-kill-word
|
||||||
bindkey -M viins '^a' beginning-of-line
|
bindkey -M viins '^a' beginning-of-line
|
||||||
bindkey -M viins '^e' end-of-line
|
bindkey -M viins '^e' end-of-line
|
||||||
bindkey -M viins '[w' forward-word
|
bindkey -M viins '^[w' forward-word
|
||||||
bindkey -M viins '[b' backward-word
|
bindkey -M viins '^[b' backward-word
|
||||||
|
|
||||||
bindkey -M viins ' ' magic-space
|
bindkey -M viins ' ' magic-space
|
||||||
bindkey -M viins 'jk' vi-cmd-mode
|
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^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)
|
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.
|
# Sets Prezto options.
|
||||||
|
|
||||||
|
[[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]
|
||||||
|
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
|
||||||
|
|
||||||
# General
|
# General
|
||||||
|
|
||||||
zstyle ':prezto:module:prompt' theme 'my'
|
zstyle ':prezto:module:prompt' theme 'v0'
|
||||||
|
|
||||||
# Set case-sensitivity for completion, history lookup, etc.
|
# Set case-sensitivity for completion, history lookup, etc.
|
||||||
# zstyle ':prezto:*:*' case-sensitive 'yes'
|
# zstyle ':prezto:*:*' case-sensitive 'yes'
|
||||||
|
|
2
zshrc
2
zshrc
|
@ -2,6 +2,8 @@
|
||||||
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
|
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
|
||||||
source ~/.zsh/preztorc
|
source ~/.zsh/preztorc
|
||||||
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
|
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
|
||||||
|
else
|
||||||
|
echo "Prezto isn't installed! Run ~/.dotfiles/install.sh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Source component rcfiles
|
# Source component rcfiles
|
||||||
|
|
Loading…
Reference in a new issue