Linux set default editor (qbit)

Time:2021-1-28

Ubuntu / CentOS universal

  • This method works for Ubuntu 20.04/centos 7
  • stay~/.bashrcThe following contents are added to the table
export EDITOR=$(which vim)
export SYSTEMD_EDITOR=$(which vim)

For Ubuntu

  • For Ubuntu 20.04
update-alternatives --config editor

This article comes fromqbit snap