Edit CLI Commands in Your Editor

TIL you can edit complex CLI commands using vi by pressing Ctrl-x Ctrl-e in your terminal. This operation opens the current command in your default editor (usually vi or nano).

Editing CLI command in vi

Editing CLI command in vi