terminal开启vi-mode

bash开启vi-mode

1
vim ~/.bashrc

添加:

1
set -o vi
1
source ~/.bashrc

zsh开启vi-mode

1
vim ~/.zshrc

添加

1
plugins=(vi-mode)
1
source ~/.zshrc

esc与caps_lock交换

1
vim ~/.xmodmap

添加:

1
2
3
4
clear Lock  
keysym Caps_Lock = Escape
keysym Escape = Caps_Lock
add Lock = Caps_Lock
1
xmodmap ~/.xmodmap