1. Install the complete vim
# Apt-get Install Vim-gnome
2. Install Ctags,ctags to support taglist, required!
# Apt-get Install Ctags
3. Installing TagList
#apt-get Install vim-scripts
#apt-get Install Vim-addon-manager //It seems I installed the vim-scripts when I installed the Vim-addon-manager
# vim-addons Install TagList
4. Install Pydiction (implement code completion)
#wget Http://www.pythonclub.org/_media/python-basic/pydiction-1.2.zip
#unzip Pydiction-1.2.zip
~/.vim/after/ftplugin and ~/.vim/tools/pydiction/directories do not exist by default and need to be created yourself
#cp Pydiction-1.2/python_pydiction.vim ~/.vim/after/ftplugin
#cp pydiction-1.2/complete-dict ~/.vim/tools/pydiction/complete-dict
5. Edit the configuration file
# Vim ~/.VIMRC
Let's tlist_auto_highlight_tag=1 let's tlist_auto_open=1 let's tlist_auto_update=1 let's 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 <silent> <F8>:tlisttoggle<cr>// Set F8 to taglist switch 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 let G:pydiction _location= ' ~/.vim/tools/pydiction/complete-dict ' set autoindent//implement auto Indent set Tabstop=4set shiftwidth=4 set Expandtab Set number
Set Mouse=a//vim When editing an environment, the insertion point can be controlled by the mouse
Attention:
1. If the above code//and the following statement is a comment, set the self-deletion, or every time you start vim will be an error!
2. Ubuntu is a multi-user system, such as the last four or five steps under which account set, which account is effective, other users invalid. If configured under root, the root user can see the effect and other users are not valid.
At this point, the Python IDE's environment is set up to complete the diagram:
Auto-complete function:
Original reference http://blog.csdn.net/nickyzhi/article/details/38429785
Vim environment settings (applied to Python programming)