Pydiction Introduction
Pydiction is a piece of Python code auto-completion script, it can achieve the following functions:
1. Python keyword completion
2, the function complements the whole
3. Complete module Completion
4, module internal function, variable complement
5, the module is introduced to complete the completion of the sub-module
:http://vim.sourceforge.net/scripts/script.php?script_id=850
Vim Configuration
Version requirements:
vim-7.0 or more
pydiction-1.2 or more
[[email protected] ~]# mkdir -p ~/.vim/bundle[[email protected] ~]# mkdir -p ~/.vim/tools/pydiction/[[email protected] ~]# mkdir -p ~/.vim/ after/ftplugin[[email protected] ~]# cd ~/.vim/bundle/[[email protected] ~]# git clone https://github.com/rkulla/pydiction.git[[email protected] ~]# cp pydiction/after/ftplugin/python_pydiction.vim ~/.vim/after/ftplugin/[[email protected] ~] # cp pydiction/complete-dict ~/.vim/tools/pydiction/[[email protected] ~]# cat ~/.vimrc # vim configuration File "AutoSave set autowrite" opens the status bar ruler set ruler "Highlight Current line set cursorline " syntax highlighting set syntax=on "Cancel input error beep set noeb " Auto indent set Autoindentset cindent "Settingstab width is 4 spaces set tabstop=4set expandtab "Unified indent to 4set softtabstop=4set shiftwidth=4" matches parentheses highlight set showmatch "Match bracket Highlight time (1/10 seconds) set matchtime=1" Pydiction configuration filetype plugin onlet g: pydiction_location = ' ~/.vim/tools/pydiction/complete-dict ' let g:pydiction_menu_height = 20
Use the TAB key in vim to automatically complete the completion.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/71/6F/wKioL1XQZv6QoSDPAAMgVfNDHnc477.jpg "title=" 85e70226-844c-4653-89b4-c6f818a4cee8.png "alt=" Wkiol1xqzv6qosdpaamgvfndhnc477.jpg "/>
Reference links
Http://www.pythonclub.org/linux/vim/pydiction
This article is from the "The-way-to-cloud" blog, make sure to keep this source http://iceyao.blog.51cto.com/9426658/1685037
Vim-python AutoComplete Plugin