^G in Claude and Codex will drop you into $EDITOR to edit your prompt. I use that all the time.
"vimdiff" is a really great way to review code changes side-by-side.