3 ms·
As a vim user for everything, I once tried to use the vi mode in bash and zsh, but quickly got back to emacs style cause I couldn't do what I was used to (mostl
by ltrls42 12y ago
As a vim user for everything, I once tried to use the vi mode in bash and zsh, but quickly got back to emacs style cause I couldn't do what I was used to (mostly Ctrl+P/N,A/E,R,W/U).
Is there someone here who would tell me how he uses the vi mode in a shell/readline program so I could try again?
- dorfsmay 12y agoHit "<esc> k", then it's like vi, k/j to go up down the history buffer, l/h to move right and left (and of course, w, b, fx etc...), cx/dx/ etc... to change/delete (x if a movement command) etc... "<esc> /pattern" to search back in the history buffer The only tricky one for bash is "<esc> =" for file completion.