![如何在 .inputrc 中重新映射“vi-search-again”?](https://linux22.com/image/228443/%E5%A6%82%E4%BD%95%E5%9C%A8%20.inputrc%20%E4%B8%AD%E9%87%8D%E6%96%B0%E6%98%A0%E5%B0%84%E2%80%9Cvi-search-again%E2%80%9D%EF%BC%9F.png)
我使用 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
在“/”搜索期间按下不会产生任何响应。重新映射此命令的正确方法是什么?