set default editor on linux code example Example: set vim default editor sudo update-alternatives --config editor