Last active
June 12, 2024 23:24
-
-
Save ghomem/84549becd122453f27f7278cae19b91a to your computer and use it in GitHub Desktop.
IDEalize-vim.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
timestamp=$(date +%Y-%m-%d_%H-%M-%S) | |
vimrc_backup=/tmp/.vimrc.bak.$timestamp | |
# backup previous vimrc | |
if [ -f ~/.vimrc ]; then | |
cp -R ~/.vimrc $vimrc_backup | |
echo "Previous .vimrc was backed up to $vimrc_backup" | |
fi | |
# get new vimrc | |
wget -O ~/.vimrc https://gist.githubusercontent.com/ghomem/816ac97ef7ccd1064e2ffa650b9033e8/raw/ &> /dev/null | |
# setup plugins | |
mkdir -p ~/.vim/autoload | |
wget -O ~/.vim/autoload/plug.vim https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim &> /dev/null | |
# make sure plugins are installed | |
echo | vim +PlugInstall +qall &> /dev/null | |
echo "You vim configuration is now IDEalized." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment