mirror of
https://github.com/tomru/DotfilesOld.git
synced 2026-03-03 06:27:21 +01:00
improve vi keybindings in zsh
This commit is contained in:
10
zshrc
10
zshrc
@@ -25,6 +25,15 @@ setopt auto_cd
|
||||
setopt multios
|
||||
setopt cdablevars
|
||||
|
||||
|
||||
########################
|
||||
# vi mode
|
||||
########################
|
||||
bindkey -v
|
||||
zle -N edit-command-line
|
||||
autoload -Uz edit-command-line
|
||||
bindkey -M vicmd 'v' edit-command-line
|
||||
|
||||
########################
|
||||
# Aliases
|
||||
########################
|
||||
@@ -53,7 +62,6 @@ alias ls='ls --color=tty'
|
||||
|
||||
# keybindings
|
||||
|
||||
bindkey -v
|
||||
export KEYTIMEOUT=1
|
||||
|
||||
# prevent 2*ESC-i insert-mode switch failure
|
||||
|
||||
Reference in New Issue
Block a user