Automatic completion of VIM Python code under Linux

Source: Internet
Author: User

Tags: strong http str mod let variable Linux after OCA

One, vim python automatic completion plug-in: pydiction

You can implement the following Python code auto-completion:
1. Simple python keyword completion
2.python function Completion with parentheses
3.python Module Completion
4.python module internal function, variable completion
5.from Module Import sub-module complement

Plugin Address: https://github.com/rkulla/pydiction

wget Https://github.com/rkulla/pydiction/archive/master.zip
Yum Install-y Unzip Tree
Unzip-q Master
MV Pydiction-master Pydiction
Mkdir-p ~/.vim/tools/pydiction
Cp-r Pydiction/after ~/.vim
CP Pydiction/complete-dict ~/.vim/tools/pydiction

# Tree ~/.vim
/root/.vim
├──after
│└──ftplugin
│└──python_pydiction.vim
└──tools
└──pydiction
└──complete-dict
Create a ~/.VIMRC to make sure the contents are as follows:
[Ceo-xsec ~]# Cat ~/.VIMRC
FileType plugin on
Let g:pydiction_location = ' ~/.vim/tools/pydiction/complete-dict '

Then create a. py file test to

Automatic completion of VIM Python code under Linux

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.

Tags Index: