I'm getting used to vim bindings (like pressing w to go to word, dw to delete a word, and such) and it's modes (insert, normal, visual), and, out of curiosity would like to know: is there some kind of implementation of this behaviour of modes and bindings from vim to my terminal?
Have insert mode, normal mode and such...
.vimrc
since you're still using the shell's built-in editor, but you can configure key bindings in.inputrc
for all readline applications (such as bash), in.bashrc
for bash specifically, in.zshrc
for zsh. – Gilles 'SO- stop being evil' Dec 15 '10 at 18:34put -o vi
in ~/.bash_profile instead of ~/.bashrc . – Steve Jorgensen Mar 23 '11 at 07:24put
(and notset
), does Mac have it's own version ofbash
? – May 02 '17 at 17:50set show-mode-in-prompt on
,set vi-ins-mode-string "+"
andset-cmd-mode-string ":"
in your.inputrc
file. – Will Dec 28 '17 at 04:43set show-mode-in-prompt on
set vi-ins-mode-string "+"
set vi-cmd-mode-string ":"
– soap Dec 30 '19 at 15:22<C-v>, <C-S-v>
nor vim registers work. – LRDPRDX Apr 09 '20 at 13:47you can launch the full $EDITOR to edit the current line with v
this doesn't seem to work with zsh. it is entering visual mode. any idea? i am using powerlevel10k theme, but i don't think that could be the reason right? – kevinnls May 22 '21 at 10:43