We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I hope someone could add vi mode key bindings for bash section.
The text was updated successfully, but these errors were encountered:
命令行下我自己是用杂了,在我开始用 vim 之前就习惯bash下面 CTRL-A, CTRL-E 之类的快捷键了。后来用了 Vim 以后,bash 键位我就没改过。
我现在在 bash 下配置了这一组快捷键:
bind '"\eh":"\C-b"' bind '"\el":"\C-f"' bind '"\ej":"\C-n"' bind '"\ek":"\C-p"' bind '"\eH":"\eb"' bind '"\eL":"\ef"' bind '"\eJ":"\C-a"' bind '"\eK":"\C-e"' bind '"\e;":"ls -l\n"'
zsh 下也可以设置类似的:
bindkey '\eh' backward-char bindkey '\el' forward-char bindkey '\ej' down-line-or-history bindkey '\ek' up-line-or-history bindkey '\eH' backward-word bindkey '\eL' forward-word bindkey '\eJ' beginning-of-line bindkey '\eK' end-of-line
配合其他几个 emacs 键位,跳到开头,跳到结尾,删除单词,删除字母,用起来还行。
被我我用成混合模式了。
Sorry, something went wrong.
No branches or pull requests
I hope someone could add vi mode key bindings for bash section.
The text was updated successfully, but these errors were encountered: