Recently found Python is a good language, it is worth learning, first configured under the environment, so that VIM has a keyword completion function, the process is as follows, I this is Fedora, other distributions similar
$ su
********
# yum Install Vim-taglist-y
# wget Http://www.pythonclub.org/_media/python-basic/pydiction-1.2.zip
# Unzip Pydiction-1.2.zip
# mkdir-p ~/.vim/after/ftplugin
# mkdir-p ~/.vim/tools/pydiction/
# CP Pydiction-1.2/python_pydiction.vim ~/.vim/after/ftplugin
# CP Pydiction-1.2/complete-dict ~/.vim/tools/pydiction/complete-dict
# Vim ~/.VIMRC
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 T list_show_one_file=1 let tlist_use_right_window=1 let Tlist_use_singleclick=1 nnoremap <silent> <F8>: Tlis Ttoggle<cr>//Set F8 for taglist switch filetype plugin on autocmd filetype python set Omnifunc=pythoncomplete#complete a Utocmd 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#com Pletetags autocmd FileType php set omnifunc=phpcomplete#completephp autocmd FileType C set Omnifunc=ccomplete#complete Let g:pydiction_location= ' ~/.vim/tools/pydiction/complete-dict ' Set Autoindentset tabstop=4 set shiftwidth=4 set Expandtab Set Number
The TAB key can be used to complete the F8 key to open/close taglist,ctrl+w switch in the window
Reference:
http://tntcastle.net/2012/09/ubuntu%E4%B8%8B%E5%B0%86vim%E9%85%8D%E7%BD%AE%E4%B8%BApython-ide/
Http://www.pythonclub.org/linux/vim/pydiction
Configuring Python completion in Vim, Fedora 19