terminal开启vi-mode 秋日摘桂花做饼 2019-07-12 linux › archlinux bash开启vi-mode1vim ~/.bashrc 添加: 1set -o vi 1source ~/.bashrc zsh开启vi-mode1vim ~/.zshrc 添加 1plugins=(vi-mode) 1source ~/.zshrc esc与caps_lock交换1vim ~/.xmodmap 添加: 1234clear Lock keysym Caps_Lock = Escape keysym Escape = Caps_Lock add Lock = Caps_Lock 1xmodmap ~/.xmodmap