←back to thread

217 points tanelpoder | 2 comments | | HN request time: 0.418s | source
1. zests ◴[] No.26493394[source]
If you hit Control-X-E it will open whatever is set as $EDITOR in a temporary session you can paste your command in to. I'd recommend vim. You can even use vim to edit your command. Once you save and quit your command will be run.

The article mentions this but not the ^X^E shortcut.

replies(1): >>26493424 #
2. mjsir911 ◴[] No.26493424[source]
Also `v` in command mode when your readline is in vi mode (set -o vi)