Skip to content

Instantly share code, notes, and snippets.

@nik-garg
Last active May 5, 2021 15:25
Show Gist options
  • Save nik-garg/5ebf7518d294999a327c5dc46220c4d8 to your computer and use it in GitHub Desktop.
Save nik-garg/5ebf7518d294999a327c5dc46220c4d8 to your computer and use it in GitHub Desktop.
Vim setup 2
# Install required pakcages
echo 'Installing required apt packages...'
sudo apt install -y curl wget
# Installing latest VIM
sudo add-apt-repository -y ppa:jonathonf/vim
sudo apt update
sudo apt install -y vim
# Switch to home dir and copy .vimrc
echo 'Downloading vimrc...'
cd $HOME
wget https://gist.githubusercontent.com/nik-garg/7a2c139fb9a9d211b0a56a4f9d779e4f/raw/11529079fe675e25ebadc8d2c6f8c3b6698a53c5/.vimrc
# Install vim plug
echo 'Installing vim plug...'
cd $HOME
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
# Install plugins from vimrc
echo 'Installing vim plugins...'
cd $HOME
vim +'PlugInstall --sync' +qa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment