Skip to content

Instantly share code, notes, and snippets.

@imogenkinsman
Created May 6, 2015 00:11
Show Gist options
  • Save imogenkinsman/95ecc6357bf72ed6ee4a to your computer and use it in GitHub Desktop.
Save imogenkinsman/95ecc6357bf72ed6ee4a to your computer and use it in GitHub Desktop.
vimrc
execute pathogen#infect()
syntax on
filetype plugin indent on
colorscheme molokai
set t_Co=256
" https://github.com/kien/ctrlp.vim
set runtimepath^=~/.vim/bundle/ctrlp.vim
" use spaces instead of tabs
set expandtab
" The Silver Searcher
" https://robots.thoughtbot.com/faster-grepping-in-vim
if executable('ag')
" Use ag over grep
set grepprg=ag\ --nogroup\ --nocolor
" Use ag in CtrlP for listing files. Lightning fast and respects .gitignore
let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""'
" ag is fast enough that CtrlP doesn't need to cache
let g:ctrlp_use_caching = 0
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment