使用set将readline设置为vi模式
Hujiuxiang
・1 分钟阅读
将readline置于vi模式
set -o vi
要永久设置它,在你的~/.inputrc或/etc/inputrc中设置"set editing-mode vi "。