set vim as default editor debian code example Example: set vim default editor sudo update-alternatives --config editor