Last active
December 14, 2015 00:29
-
-
Save nicholasserra/4999143 to your computer and use it in GitHub Desktop.
vim plugins and .vimrc
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 | |
# grab vim plugins and write .vimrc | |
# this will probably overwrite current vim setup | |
# curl https://gist.githubusercontent.com/nicholasserra/4999143/raw/6e2fab00a9f39f659e3cfc39e26d997e3299eaeb/vim.sh | bash | |
echo "Make .vim dir structure" | |
mkdir -p ~/.vim/autoload ~/.vim/bundle; | |
echo "Grab vim-pathogen" | |
curl -Sso ~/.vim/autoload/pathogen.vim https://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vim | |
echo "Grabbing vim-sensible" | |
git clone git://github.com/tpope/vim-sensible.git ~/.vim/bundle/vim-sensible | |
echo "Grabbing syntastic" | |
git clone https://github.com/scrooloose/syntastic.git ~/.vim/bundle/syntastic | |
echo "Grabbing CTRLP" | |
git clone https://github.com/kien/ctrlp.vim.git ~/.vim/bundle/ctrlp.vim | |
echo "Grabbing NERDTree" | |
git clone https://github.com/scrooloose/nerdtree.git ~/.vim/bundle/nerdtree | |
echo "Writing .vimrc" | |
cat>~/.vimrc << EOF | |
execute pathogen#infect() | |
syntax on | |
filetype plugin indent on | |
set wildignore+=*.pyc | |
"for Syntastic | |
let g:syntastic_enable_signs=1 | |
let g:syntastic_quiet_messages = {'level': 'warnings'} | |
"ctrlp | |
set runtimepath^=~/.vim/bundle/ctrlp.vim | |
let g:ctrlp_match_window_bottom = 0 | |
let g:ctrlp_match_window_reversed = 0 | |
let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$' | |
"nerd | |
autocmd vimenter * NERDTree | |
let NERDTreeIgnore = ['\.pyc$'] | |
EOF | |
echo "Done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment