add vim install script updates

This commit is contained in:
ViktorBarzin 2018-01-15 21:53:39 +00:00
parent 39792c25f1
commit 8793bad4e4
2 changed files with 16 additions and 3 deletions

View file

@ -39,6 +39,16 @@ sudo pip install --upgrade pip && \
sudo pip install virtualenvwrapper && \
source ~/.zshrc && \
# Check whether to install vim
read -p "Setup vim? (Y/n)?" CONT
if [ "$CONT" = "n" ]; then
echo Skipping vim installation
else
# Run vim installation script
./setup-vim.sh
fi
echo '
@ -50,3 +60,4 @@ echo '
' && \
echo 'Restart your shell to apply changes'

View file

@ -1,15 +1,17 @@
#!/bin/bash
echo 'Installing vim...'
# Add vim 8 repository
sudo add-apt-repository ppa:jonathonf/vim
# Add vim 8 repository and install vim8.0
printf '\n' | sudo add-apt-repository ppa:jonathonf/vim
apt-get update >> /dev/null;
apt-get install vim -y;
# Remove default vim config directory
rm -rf ~/.vim
# To uninstall and return to stock
# sudo apt install ppa-purge && sudo ppa-purge ppa:jonathonf/vim
# Download color scheme
# Download color scheme - ne bash
wget https://raw.githubusercontent.com/ViktorBarzin/dot_files/master/.vimrc -O ~/.vimrc;
# Move plugins to plugins folder
mv vim-plugins ~/.vim