Skip to content

Instantly share code, notes, and snippets.

@ssilva
Created April 24, 2017 13:17
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ssilva/5bd8640b86695e761603cc0ffca2c4e2 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Simple, ad-hoc script to quickly bootstrap a fresh Vim install.
echo -n "This will overwrite your .vimrc and plugins. Do you wish to continue [y/N]? "
read answer
if ! echo "$answer" | grep -iq "^y"; then
exit
fi
echo Copying .vimrc...
cp -f vimrc ~/.vimrc
echo Installing Pathogen...
mkdir -p ~/.vim/autoload ~/.vim/bundle
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
echo Installing plugins...
cd ~/.vim/bundle
git clone https://github.com/tpope/vim-commentary.git
git clone https://github.com/tpope/vim-obsession.git
git clone https://github.com/tpope/vim-sensible.git
git clone https://github.com/itchyny/lightline.vim
git clone https://github.com/tpope/vim-markdown.git
git clone https://github.com/chriskempson/base16-vim.git
cd -
echo Done.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment