Created
February 5, 2016 21:45
-
-
Save waffle2k/15b28b8421f15d64adf8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
execute pathogen#infect() | |
" Solarized stuff | |
let g:solarized_termcolors = 16 | |
let g:solarized_termtrans = 1 | |
" syntax enable | |
set background=dark | |
colorscheme solarized | |
" be kind to the 80 character limit | |
highlight OverLength ctermbg=red ctermfg=white guibg=#59292 | |
match OverLength /\%81v.\+/ | |
" Remat the leader key | |
let mapleader="," | |
" join the entire paragraph with <leader>j | |
" nnoremap j VipJ | |
" remap <ESC> key as jj | |
inoremap jj <ESC> | |
"set list | |
set ai | |
set magic | |
set mouse=a | |
set number | |
set ignorecase | |
set smartcase | |
set hlsearch | |
set incsearch | |
set pastetoggle=<F2> | |
" Ensure that for Makefiles we don't replace TABs with spaces | |
let _curfile = expand("%:t") | |
if _curfile =~ "Makefile" || _curfile =~ "makefile" || _curfile =~ ".*\mk" | |
set noexpandtab | |
else | |
" Don't use tabs, use spaces | |
set expandtab | |
" make tab insert indents instead of tabs at begining of line | |
set smarttab | |
endif | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Commant-T | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
let g:CommandTMaxFiles = 10000 | |
let g:CommandTFileScanner = 'watchman' | |
" The Silver Searcher | |
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 | |
" bind K to grep word under cursor | |
nnoremap K :grep! "\b<C-R><C-W>\b"<CR>:cw<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment