Hitting “fc” from a Bash shell invokes your default editor (hopefully Vim) on your last shell command and executes it after Vim exits. This is great for command-line history editing after the fact. -e ENAME selects which editor to use. Default is FCEDIT, then EDITOR, then vi.

Notes