Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将zsh的vicmd中的'dd'绑定成'ddi'之类的东西,如果我使用:
bindkey -M vicmd -s dd 'ddi'
它会给我这个输出:
zsh: string inserting another one too many times
我已经找到了答案
function delete_then_insert(){ zle kill-whole-line zle vi-insert } zle -N delete_then_insert bindkey -M vicmd dd delete_then_insert