我使用 Colemak + Bash Vi 模式,并已重新映射h
j
k
l
到.h
n
e
i
.inputrc
重复搜索的原始N
n
键似乎绑定到同一个命令:
$ # Run in command mode
$ bind -p | grep vi-search-again
"N": vi-search-again
"n": vi-search-again
所以我尝试将此命令重新映射为K
k
:
set keymap vi-command
"n": history-search-forward
"N": ""
"K": vi-search-again
"k": vi-search-again
重新启动 Bash 后,vi-search-again
已重新映射:
$ # Run in command mode
$ bind -p | grep vi-search-again
"K": vi-search-again
"k": vi-search-again
但K
k
在“/”搜索期间按下不会产生任何响应。重新映射此命令的正确方法是什么?