Skip to content

Instantly share code, notes, and snippets.

@wckdouglas
Created May 17, 2016 15:12
Show Gist options
  • Save wckdouglas/16514d35e16ce641829a6057f9ebe46b to your computer and use it in GitHub Desktop.
Save wckdouglas/16514d35e16ce641829a6057f9ebe46b to your computer and use it in GitHub Desktop.
#!/bin/bash
#install pathogen
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
echo '
execute pathogen#infect()
syntax on
filetype plugin indent on
' > ~/.vimrc
#install nerdTree
cd ~/.vim/bundle && \
git clone https://github.com/scrooloose/nerdtree.git
echo '
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
map <C-n> :NERDTreeToggle<CR>
' >> ~/.vimrc
#install superTab
cd ~/.vim/bundle && \
git clone git://github.com/ervandew/supertab.git
#install syntastic
cd ~/.vim/bundle && \
git clone git://github.com/scrooloose/syntastic.git
echo '
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
' >> ~/.vimrc
#install solarized
cd ~/.vim/bundle
git clone git://github.com/altercation/vim-colors-solarized.git
echo '
set background=dark
colorscheme solarized ' >> ~/.vimrc
#extras
echo '
"size of a hard tabstop
set tabstop=4
" size of an "indent"
set shiftwidth=4
"a combination of spaces and tabs are used to simulate tab stops at a width
"other than the (hard)tabstop
set softtabstop=4
set hlsearch
set backspace=indent,eol,start
set number
' >> ~/.vimrc
#install airline
cd ~/.vim/bundle
git clone https://github.com/bling/vim-airline
echo'
set laststatus=2
let g:Powerline_symbols = 'fancy'
set encoding=utf-8
set t_Co=256
set fillchars+=stl:\ ,stlnc:\
let g:Powerline_mode_V="V·LINE"
let g:Powerline_mode_cv="V·BLOCK"
let g:Powerline_mode_S="S·LINE"
let g:Powerline_mode_cs="S·BLOCK"
let g:airline_powerline_fonts = 1
' >> ~/.vimrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment