Skip to content

Instantly share code, notes, and snippets.

@garrettdreyfus
Last active August 29, 2015 13:56
Show Gist options
  • Save garrettdreyfus/9175771 to your computer and use it in GitHub Desktop.
Save garrettdreyfus/9175771 to your computer and use it in GitHub Desktop.
Vim Config
set nu
syntax on
color solarized
set wildmode=longest,list,full
set wildmenu
set backspace=2
set nowrap
set t_Co=256
set mouse=a
set splitright
filetype plugin on
let g:neocomplete#enable_at_startup = 1
set runtimepath^=~/.vim/bundle/ctrlp.vim
inoremap <leader><Tab> <C-n>
inoremap <leader>c <C-x><C-L>
func! WordProcessorMode()
setlocal formatoptions=1
setlocal noexpandtab
map j gj
map k gk
set formatprg=par
setlocal wrap
setlocal linebreak
endfu
com! WP call WordProcessorMode()
noremap <leader>g :vimgrep ./**/* <Left><Left><Left><Left><Left><Left><Left><Left>
set expandtab
set shiftwidth=4
set autoindent
set smartindent
set cindent
set backup
set backupdir=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp
set backupskip=/tmp/*,/private/tmp/*
set directory=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp
set writebackup
call pathogen#infect()
let g:vimclojure#HighlightBuiltins = 1
let g:vimclojure#ParenRainbow = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment