Skip to content

Instantly share code, notes, and snippets.

@ghomem
Last active June 12, 2024 23:24
Show Gist options
  • Save ghomem/84549becd122453f27f7278cae19b91a to your computer and use it in GitHub Desktop.
Save ghomem/84549becd122453f27f7278cae19b91a to your computer and use it in GitHub Desktop.
IDEalize-vim.sh
#!/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