mirror of
https://github.com/tomru/DotfilesOld.git
synced 2026-03-04 06:57:23 +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 multios
|
||||||
setopt cdablevars
|
setopt cdablevars
|
||||||
|
|
||||||
|
|
||||||
|
########################
|
||||||
|
# vi mode
|
||||||
|
########################
|
||||||
|
bindkey -v
|
||||||
|
zle -N edit-command-line
|
||||||
|
autoload -Uz edit-command-line
|
||||||
|
bindkey -M vicmd 'v' edit-command-line
|
||||||
|
|
||||||
########################
|
########################
|
||||||
# Aliases
|
# Aliases
|
||||||
########################
|
########################
|
||||||
@@ -53,7 +62,6 @@ alias ls='ls --color=tty'
|
|||||||
|
|
||||||
# keybindings
|
# keybindings
|
||||||
|
|
||||||
bindkey -v
|
|
||||||
export KEYTIMEOUT=1
|
export KEYTIMEOUT=1
|
||||||
|
|
||||||
# prevent 2*ESC-i insert-mode switch failure
|
# prevent 2*ESC-i insert-mode switch failure
|
||||||
|
|||||||
Reference in New Issue
Block a user