Skip to content

Instantly share code, notes, and snippets.

@putermancer
Created April 12, 2011 20:41
Show Gist options
  • Save putermancer/916355 to your computer and use it in GitHub Desktop.
Save putermancer/916355 to your computer and use it in GitHub Desktop.
.vimrc.local
" Version Control (handy for VCS where open files can be changed by a pull)
set autoread
" Keybinding to format JSON
map <leader>jt <Esc>:%!python -m json.tool<CR><Esc>:set filetype=json<CR>
" Auto-trim trailing whitespace
autocmd FileType css,javascript,html,php,python,xml autocmd BufWritePre <buffer> :call setline(1,map(getline(1,"$"),'substitute(v:val,"\\s\\+$","","")'))
" Set sync area to avoid broken syntax highlighting
autocmd BufEnter * :syntax sync minlines=500
" Ignore a bunch of evil files
set wildignore+=*.o,*.obj,.bzr,.git,.hg,.svn,.DS_*,._*,.Trash*
" Plugin-specific settings
" Command-T
let g:CommandTMaxFiles=15000
" JSLint -- MacOS jsc isn't working for me after installing Safari 5.1beta
let $JS_CMD="node"
" Color schemes
color wombat
if has("gui_running")
color herald
endif
" Turn off spellchecking
set nospell
" Death to VimDebugger
unmap <F11>
unmap <F10>
unmap <S-F11>
unmap <F5>
unmap <F6>
unmap <F8>
unmap <S-F8>
unmap <F9>
unmap <S-F9>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment