Set default editor in Linux
Less than 1 minute
Set default editor in Linux
This need to edit the config file of the shell you are using.
For example, I am using zsh right now so that I have to change ~/.zshrc
.
All I have to do is add a command at the end of the config file and then source it.
export EDITOR="/usr/bin/vim"
source ~/.zshrc