Vim-python AutoComplete Plugin

Source: Internet
Author: User

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

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.