u/pmmeurcatgifsin r/vim • Recommends
I regret not knowing this terminal shortcut! Export and edit your currently typed terminal command query into a vim buffer by pressing " Ctrl + x + e ".
Honestly, this is much better than the "set -o vi" command. Because exporting your command into a vim buffer allows you to use commands like change, delete, visual select, or yank cdvy inside or around the words/sentences/paragraphs. Everyone knows Vim has far more functionality than the Vi editor.
This helped me loads in editing lengthy terminal chain commands. To paste the edited command back into terminal, just use your preferred Vim save command (I prefer Shift + zz).
To know more, watch this video:
link to this video