Configure the system default text editor.
select-editor allows you to choose your preferred default editor used by programs that rely on environment variables like EDITOR or VISUAL.
# Run interactive selector select-editor # Set editor manually export EDITOR=vim
# Check current editor echo $EDITOR # Set nano as default export EDITOR=nano # Persist in bashrc echo 'export EDITOR=vim' >> ~/.bashrc