Open the most recent command and edit it.

# To open in the default system editor:
fc

# To specify an editor to open with:
fc -e <'emacs'>

# To list recent commands from history:
fc -l