console text editor in Linux
To define your editor of choice, you would set one of these environment variable.
See Bash - fc (Fix Command) - Range of command from history - (builtin)
The most known is VIM