Skip to content

Instantly share code, notes, and snippets.

@boertel
Created March 4, 2014 08:58
Show Gist options
  • Select an option

  • Save boertel/9342739 to your computer and use it in GitHub Desktop.

Select an option

Save boertel/9342739 to your computer and use it in GitHub Desktop.
.vimrc
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'klen/python-mode'
Bundle 'tpope/vim-fugitive'
Bundle 'kien/ctrlp.vim'
Bundle 'wookiehangover/jshint.vim'
Bundle 'airblade/vim-gitgutter'
let g:pymode_folding = 0
let g:pymode_virtualenv = 1
let g:pymode_lint_on_write = 1
let g:pymode_lint_on_fly = 1
let g:pymode_lint_checkers = ['pyflakes']
let g:pymode_lint_cwindow = 0
let g:pymode_lint_signs = 0
let g:pymode_rope_goto_definition_cmd = 'vnew'
let g:pymode_rope_complete_on_dot = 0
set exrc
set secure
colorscheme wombat
set go-=T
set number
set smartindent
set splitright
set visualbell
syntax on
filetype plugin on
set showcmd
set backup
set backupdir=~/.vim/backup
set directory=~/.vim/tmp
set tabstop=4
set shiftwidth=4
set expandtab
set backspace=indent,eol,start " backspace through everything in insert mode
set wildignore=*.pyc
"set gfn=M+\ 1m\ regular:h16
set gfn=M+\ 1m\ light:h16
map <MiddleMouse> <Nop>
imap <MiddleMouse> <Nop>
let mapleader = ","
"autocmd FileType python set omnifunc=pythoncomplete#Complete
autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS
autocmd FileType html set omnifunc=htmlcomplete#CompleteTags
autocmd FileType css set omnifunc=csscomplete#CompleteCSS
inoremap <C-space> <C-x><C-o>
imap <C-z> <C-y>,
highlight ExtraWhitespace ctermbg=red guibg=red
au ColorScheme * highlight ExtraWhitespace guibg=red
au BufEnter * match ExtraWhitespace /\s\+$/
au InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
au InsertLeave * match ExtraWhiteSpace /\s\+$/
au BufNewFile,BufRead *.less set filetype=less
" disable arrow keys
map <up> <nop>
map <down> <nop>
map <left> <nop>
map <right> <nop>
"imap <up> <nop>
"imap <down> <nop>
"imap <left> <nop>
"imap <right> <nop>
"
if has("gui_running")
set cc=80
hi ColorColumn ctermbg=lightgrey guibg=#474747
endif
ab pdb import pdb; pdb.set_trace()
ab caravel import pdb; pdb.set_trace()
let g:netrw_list_hide='\.pyc$,\.DS_Store$'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment