Set vim.nox as default editor

This commit is contained in:
2021-11-05 20:18:45 +08:00
parent fa77c74fc9
commit 571214ad24

View File

@@ -63,3 +63,9 @@ fi
mkdir -pv "$HOME/.vim/bundle"
git clone https://github.com/VundleVim/Vundle.vim "$HOME/.vim/bundle/Vundle.vim"
vim +PluginInstall +qall
echo "Set vim-nox as the default system editor"
VIM_PATH="$(which vim.nox)"
if [ -x "$VIM_PATH" ]; then
sudo update-alternatives --config editor "$VIM_PATH"
fi