Skip to content

Instantly share code, notes, and snippets.

@KalenAnson
Last active September 2, 2015 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KalenAnson/9bd106c94bfe4890a5cc to your computer and use it in GitHub Desktop.
Save KalenAnson/9bd106c94bfe4890a5cc to your computer and use it in GitHub Desktop.
Vim Baby
# Install Pathogen
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
# Add the following to `.vimrc`
" Start Pathogen
execute pathogen#infect()
# Now add Syntastic via Pathogen
cd ~/.vim/bundle && \
git clone https://github.com/scrooloose/syntastic.git
# Add NerdTree
cd ~/.vim/bundle
git clone https://github.com/scrooloose/nerdtree.git
# Add this to `.vimrc` to start nerd tree
" Auto Start NerdTree
autocmd vimenter * NERDTree
" Start NerdTree from empty vim window
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
" Crtl-n for NerdTree Toggle
map <C-n> :NERDTreeToggle<CR>
# VIM Airline
git clone https://github.com/bling/vim-airline ~/.vim/bundle/vim-airline
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment