DEV Community

Discussion on: What are your command line tips?

Collapse
 
devinthemtn profile image
devinthemtn

For editing long commands, typo or other edits, I recommend using the edit in vim shortcut. mine is set to ctl+x e I'm unsure what default is atm.

Collapse
 
grendel profile image
grendel

i have vi mode set via ~/.inputrc (previously i had set -o vi in my ~/.bashrc) so if i want to edit the line in vim proper, i can just press Mod+V at any point and bam, vim opens with the command buffer in it