Configuring Python completion in Vim, Fedora 19

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.