Created
December 27, 2013 14:38
-
-
Save whalesalad/8147806 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
| set nocompatible | |
| filetype off | |
| set rtp+=~/.vim/bundle/vundle/ | |
| call vundle#rc() | |
| Bundle 'gmarik/vundle' | |
| "Bundle 'chriskempson/base16-vim' | |
| Bundle 'johnallen3d/made-of-code.vim' | |
| Bundle 'altercation/vim-colors-solarized' | |
| Bundle 'bling/vim-airline' | |
| Bundle 'airblade/vim-gitgutter' | |
| Bundle 'kien/ctrlp.vim' | |
| Bundle 'rking/ag.vim' | |
| Bundle 'MarcWeber/vim-addon-local-vimrc' | |
| " set vim working dir to git root | |
| Bundle 'airblade/vim-rooter' | |
| " Language/Syntax Bundles | |
| Bundle 'kchmck/vim-coffee-script' | |
| Bundle 'pangloss/vim-javascript' | |
| Bundle 'rmanalan/jshint.vim' | |
| Bundle 'django.vim' | |
| Bundle 'closetag.vim' | |
| " Tim Pope | |
| Bundle 'tpope/vim-commentary' | |
| Bundle 'tpope/vim-surround' | |
| syntax enable | |
| set background=dark | |
| colorscheme made-of-code | |
| set tabstop=4 | |
| set shiftwidth=4 | |
| set softtabstop=4 | |
| set expandtab " use spaces instead of tabs. | |
| set smarttab " let's tab key insert 'tab stops', and bksp deletes tabs. | |
| set shiftround " tab / shifting moves to closest tabstop. | |
| set autoindent " Match indents on new lines. | |
| set smartcase " case-insensitive search if capitals | |
| set laststatus=2 " always show a status line. | |
| set history=1000 " cmd-mode history, and search history | |
| set nobackup " We have vcs, we don't need backups. | |
| set nowritebackup " We have vcs, we don't need backups. | |
| set noswapfile " They're just annoying. Who likes them? | |
| set relativenumber | |
| set undofile " keep a persistent undo file so we can undo even after a reboot | |
| set undodir=~/.vim/tmp/undo/ | |
| set undoreload=10000 | |
| set list | |
| set listchars=tab:▸\ ,eol:¬ " show fancy characters for tabstops, and \n's | |
| set ruler | |
| set splitbelow | |
| set splitright | |
| set autowrite | |
| set autoread | |
| set guifont=Monaco\ For\ Powerline:h12 | |
| function! StripTrailingWS() | |
| let l:winview = winsaveview() | |
| silent! %s/\s\+$// | |
| call winrestview(l:winview) | |
| endfunction | |
| " auto-trim trailing white-space on save | |
| autocmd BufWritePre *.* :call StripTrailingWS() | |
| " save on focus lost | |
| au FocusLost * :silent! wa | |
| let g:airline_powerline_fonts=1 | |
| let g:airline_section_c = '%t' | |
| let mapleader = "," | |
| nnoremap ; : | |
| vnoremap ; : | |
| noremap <leader>v <C-w>v | |
| nnoremap <C-h> <C-w>h | |
| nnoremap <C-j> <C-w>j | |
| nnoremap <C-k> <C-w>k | |
| nnoremap <C-l> <C-w>l | |
| nnoremap / /\v | |
| vnoremap / /\v | |
| noremap <leader><space> :noh<cr>:call clearmatches()<cr> | |
| " Quick buffer switching - like cmd-tab'ing | |
| nnoremap <leader><leader> <c-^> | |
| let g:ctrlp_map = '<c-t>' | |
| let g:ctrlp_max_height = 30 | |
| set wildmenu " cmd line completion a-la zsh | |
| set wildmode=list:longest " matches mimic that of bash or zsh | |
| set wildignore=*/node_modules/* | |
| set wildignore+=*/npm_cache/* | |
| set wildignore+=*/.ropeproject/* | |
| set wildignore+=.hg,.git,.svn " Version control | |
| set wildignore+=*.aux,*.out,*.toc " LaTeX intermediate files | |
| set wildignore+=*.jpg,*.bmp,*.gif,*.png,*.jpeg " binary images | |
| set wildignore+=*.o,*.obj,*.exe,*.dll,*.manifest " compiled object files | |
| set wildignore+=*.spl " compiled spelling word lists | |
| set wildignore+=*.sw? " Vim swap files | |
| set wildignore+=*.DS_Store " OSX bullshit | |
| set wildignore+=*/migrations/* " Django migrations | |
| set wildignore+=*.pyc " Python byte code | |
| augroup myvimrc | |
| au! | |
| au BufWritePost .vimrc,_vimrc,vimrc,.gvimrc,_gvimrc,gvimrc so $MYVIMRC | if has('gui_running') | so $MYGVIMRC | endif | |
| augroup END | |
| set exrc " enable per-directory .vimrc files | |
| set secure " disable unsafe commands in local .vimrc files |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment