cd ~/.vim/bundle
git clone https://github.com/gmarik/vundle.git
vim +BundleInstall +qall
git clone https://github.com/tpope/vim-fugitive.git
git clone https://github.com/klen/python-mode.git
git clone https://github.com/davidhalter/jedi-vim.git
vim +BundleInstall +qall
vimrc:
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
Bundle ‘davidhalter/jedi-vim’
Bundle ‘tpop/vim-pathogen’
Bundle ‘klen/python-mode’
filetype plugin indent on
” The rest of your config follows here
syntax on
” Python-mode
” ” Activate rope
” ” Keys:
” ” K Show python docs
” ”
” ”
” ”
” ”
” ”
” ” [[ 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)
” Change this to 1 to enable python-mode code completion; we are using jedi for this, so it is 0
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 = ‘
” 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