zsh: move vi-mode settings to correct file
This commit is contained in:
parent
42d84a2e12
commit
9284758f58
2 changed files with 9 additions and 8 deletions
|
@ -34,3 +34,12 @@ zle -N zle-keymap-select
|
|||
zle-line-init() { set_cursor_shape bar }
|
||||
zle -N zle-line-init
|
||||
|
||||
# Search through history in insert mode.
|
||||
bindkey -M viins '^j' history-beginning-search-forward
|
||||
bindkey -M viins '^k' history-beginning-search-backward
|
||||
|
||||
# Restore some common and useful emacs mode shortcut.
|
||||
bindkey -M viins '^a' vi-beginning-of-line
|
||||
bindkey -M viins '^e' vi-end-of-line
|
||||
bindkey -M viins '^l' clear-screen
|
||||
|
||||
|
|
|
@ -26,12 +26,4 @@ zstyle ':completion:*' menu select
|
|||
# bindkey -M menuselect 'l' vi-forward-char
|
||||
# bindkey -M menuselect 'j' vi-down-line-or-history
|
||||
|
||||
# Search through history in insert mode.
|
||||
bindkey -M viins '^j' history-beginning-search-forward
|
||||
bindkey -M viins '^k' history-beginning-search-backward
|
||||
|
||||
# Restore some common and useful emacs mode shortcut.
|
||||
bindkey -M viins '^a' vi-beginning-of-line
|
||||
bindkey -M viins '^e' vi-end-of-line
|
||||
bindkey -M viins '^l' clear-screen
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue