Vim Plugins For Python Development

Here are some plugins for vim to become a functioanl python IDE :

Alternatively, instead of using python-mode(it appears relatively slow sometimes), the following two plugins are helpful for syntacs checking and autocompletion :

In addition, python-mode rope autocompletion can be replaced by jedi-vim, but there is some conflicts if we enable both of them, the solution is to disable one of them.

Here are some basic setups for the above plugins (Remember to install pathogen):

 1 set t_Co=256                                                                               
 2 set nocompatible
 3 set autochdir
 4 execute pathogen#infect()
 5 filetype plugin indent on
 6 
 7 syntax enable
 8 
 9 let g:solarized_termcolors=256
10 if has('gui_running')
11     set background=light
12 else
13     set background=dark
14 endif
15 
16 colorscheme solarized
17 
18 " For NERDTree Configurations
19 map <C-b> :NERDTreeToggle<CR>
20 autocmd StdinReadPre * let s:std_in=1
21 autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
22 autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
23 
24 " For selecting splitted window just press
25 " Ctrl+J or K or L or H
26 " To split the window
27 " :sp or :vsp followed by document path
28 nnoremap <C-J> <C-W><C-J>
29 nnoremap <C-K> <C-W><C-K>
30 nnoremap <C-L> <C-W><C-L>
31 nnoremap <C-H> <C-W><C-H>
32 
33 set laststatus=2
34 set tabstop=4
35 " When indenting with '>', use 4 spaces width
36 set shiftwidth=4
37 set expandtab
38 set nu
39 set autoindent
40 set cursorline
41 
42 let g:airline_powerline_fonts = 1
43 let g:airline_theme = 'papercolor'
44 let g:solarized_bold = 1
45 
46 " Because of using Jedi-Vim, turn off pymode-rope
47 " let g:pymode_rope = 0
48 let g:pymode_folding = 0