Skip to content

Instantly share code, notes, and snippets.

@chizhang529
Created April 20, 2018 18:08
Show Gist options
  • Save chizhang529/bb0ebeb77542f986b2c31e408a1421e4 to your computer and use it in GitHub Desktop.
Save chizhang529/bb0ebeb77542f986b2c31e408a1421e4 to your computer and use it in GitHub Desktop.
Shell script for setting up vim and tmux quickly
# init .vim folder
cd ~
mkdir .vim
cd .vim
touch vimrc
git init .
# soft link
ln -s ~/.vim/vimrc ~/.vimrc
# set up colors
mkdir ~/.vim/colors
# install Pathogen
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
# download plugins
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/AutoClose.git
git clone https://github.com/itchyny/lightline.vim.git
git clone https://github.com/Shougo/neocomplete.vim.git
git clone https://github.com/scrooloose/nerdcommenter.git
git clone https://github.com/scrooloose/nerdtree.git
git clone https://github.com/Xuyuanp/nerdtree-git-plugin.git
git clone https://github.com/ervandew/supertab.git
# set up tmux
cd
git clone https://github.com/gpakosz/.tmux.git
ln -s -f .tmux/.tmux.conf
cp .tmux/.tmux.conf.local .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment