lk/system/editors.md

432 B

title tags
$EDITOR
Documentation
System

The System's default text editor can be defined within /etc/profile. It's given the variable EDITOR.

Add these lines to /etc/profile.d/local.sh:


export EDITOR=vim

export VISUAL=$EDITOR

Then reload that profile with:

source /etc/profile

If you want to ensure nano never appears again:

sudo ln -sf $(which vim) $(which nano)