How do I change the default editor in terminal?

How do I change the default editor in terminal?
Answer
2 Answers. Simply
set the EDITOR variable to vim in your bash startup file. edit-and-execute-command (C-xC-e) Invoke an editor on the current command line, and execute the result as shell commands. Bash attempts to invoke $FCEDIT, $EDITOR, and emacs as the editor, in that order.
 

Tìm kiếm

Back
Top