1.sudo apt-get install vim-gnome
2.sudo apt-get install ctags
3.sudo apt-get install vim-scripts
4.vim-addons install taglist
5.cp after/ftplugin/python_pydiction.vim ~/.vim/after/ftplugin/
6.cp complete-dict ~/.vim/
7.cp pydiction.py ~/.vim
创建~/.vimrc
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set autoindent
set foldmethod=indent
let Tlist_Auto_Highlight_Tag=1
let Tlist_Auto_Open=1
let Tlist_Auto_Update=1
let Tlist_Display_Tag_Scope=1
let Tlist_Exit_OnlyWindow=1
let Tlist_Enable_Dold_Column=1
let Tlist_File_Fold_Auto_Close=1
let Tlist_Show_One_File=1
let Tlist_Use_Right_Window=1
let Tlist_Use_SingleClick=1
nnoremap :TlistToggle
filetype plugin on
autocmd FileType python set omnifunc=pythoncomplete#Complete
autocmd FileType javascrīpt set omnifunc=javascriptcomplete#CompleteJS
autocmd FileType html set omnifunc=htmlcomplete#CompleteTags
autocmd FileType css set omnifunc=csscomplete#CompleteCSS
autocmd FileType xml set omnifunc=xmlcomplete#CompleteTags
autocmd FileType php set omnifunc=phpcomplete#CompletePHP
autocmd FileType c set omnifunc=ccomplete#Complete
autocmd FileType python set omnifunc=pythoncomplete#Complete
let g:pydiction_location = '/home/zoe/.vim/complete-dict'
let g:pydiction_menu_height = 20
set foldmethod=indent
这样效果是: