Skip to content

Instantly share code, notes, and snippets.

@danielgrippi
Created January 20, 2012 20:31
Show Gist options
  • Save danielgrippi/1649407 to your computer and use it in GitHub Desktop.
Save danielgrippi/1649407 to your computer and use it in GitHub Desktop.
dan's vimrc.local
set wildmode=full
set wildignore+=*/.git/*,*/log/*,*/.hg/*,*/.svn/*,*/.DS_Store,*/public/uploads/*
" NERDTree and Control-P remapping
map \ :NERDTreeToggle<CR>
nmap <Leader>t :CommandT<CR>
nmap <Leader>p :CtrlP<CR>
nmap <Leader>b :CtrlPBuffer<CR>
" Visual Indentation
vmap <tab> >gv
vmap <S-tab> <gv
" Auto-indent whole file
nmap <leader>= gg=G``
" Git Blame
map <leader>g :Gblame<CR>
map <leader>d :Gdiff<CR>
" Remove highlighting post-search
nmap <leader>n :nohls<CR>
" Buffer cycling
map <F2> :bprevious<CR>
map <F3> :bnext<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment