select-editor

Configure the system default text editor.

What it does

select-editor allows you to choose your preferred default editor used by programs that rely on environment variables like EDITOR or VISUAL.

Quick Start

# Run interactive selector
select-editor

# Set editor manually
export EDITOR=vim

Examples

# Check current editor
echo $EDITOR

# Set nano as default
export EDITOR=nano

# Persist in bashrc
echo 'export EDITOR=vim' >> ~/.bashrc

Notes