From 798c5130a7c1b20822f586b41a420293c84b09d7 Mon Sep 17 00:00:00 2001 From: Ahir Reddy Date: Tue, 2 Jul 2013 20:41:05 -0700 Subject: [PATCH] added vimrc --- .vimrc | 99 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 .vimrc diff --git a/.vimrc b/.vimrc new file mode 100644 index 000000000..2a84165fa --- /dev/null +++ b/.vimrc @@ -0,0 +1,99 @@ +set nocompatible +filetype off + +set rtp+=~/.vim/bundle/vundle/ +call vundle#rc() + +" let Vundle manage Vundle +" required! +Bundle 'gmarik/vundle' + +" The bundles you install will be listed here + +filetype plugin indent on +Bundle 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'} +Bundle 'scrooloose/nerdtree' +Bundle 'klen/python-mode' + +" The rest of your config follows here + +" Excess Line Length +augroup vimrc_autocmds + autocmd! + " highlight characters past column 120 + autocmd FileType python highlight Excess ctermbg=DarkGrey guibg=Black + autocmd FileType python match Excess /\%120v.*/ + autocmd FileType python set nowrap +augroup END + +" Powerline setup +set guifont=DejaVu\ Sans\ Mono\ for\ Powerline\ 9 +set laststatus=2 + +" Nerd Tree +map :NERDTreeToggle + +" Python-mode Setup +" Python-mode +" Activate rope +" Keys: +" K Show python docs +" Rope autocomplete +" g Rope goto definition +" d Rope show documentation +" f Rope find occurrences +" b Set, unset breakpoint (g:pymode_breakpoint enabled) +" [[ Jump on previous class or function (normal, visual, operator modes) +" ]] Jump on next class or function (normal, visual, operator modes) +" [M Jump on previous class or method (normal, visual, operator modes) +" ]M Jump on next class or method (normal, visual, operator modes) +let g:pymode_rope = 0 + +" Documentation +let g:pymode_doc = 1 +let g:pymode_doc_key = 'K' + +"Linting +let g:pymode_lint = 1 +let g:pymode_lint_checker = "pyflakes,pep8" +" Auto check on save +let g:pymode_lint_write = 1 + +" Support virtualenv +let g:pymode_virtualenv = 1 + +" Enable breakpoints plugin +let g:pymode_breakpoint = 1 +let g:pymode_breakpoint_key = 'b' + +" syntax highlighting +let g:pymode_syntax = 1 +let g:pymode_syntax_all = 1 +let g:pymode_syntax_indent_errors = g:pymode_syntax_all +let g:pymode_syntax_space_errors = g:pymode_syntax_all + +" Don't autofold code +let g:pymode_folding = 0 + + +" Other settings +" Use l to toggle display of whitespace +nmap l :set list! +" And set some nice chars to do it with +set listchars=tab:»\ ,eol:¬ + +" automatically change window's cwd to file's dir +set autochdir + +" I'm prefer spaces to tabs +set tabstop=4 +set shiftwidth=4 +set expandtab + +" more subtle popup colors +if has ('gui_running') + highlight Pmenu guibg=#cccccc gui=bold +endif + +let mapleader = ',' +