Linux vim Auto complement Python plugin: pydiction

Source: Internet
Author: User
Tags python script

Pydiction can be we use the TAB key to automatically complement the Python code in Vim, is a very good plugin.

Pydiction does not need to be installed, all without any dependency on package issues, pydiction mainly contains three files.

Python_pydiction.vim--Vim plugin that autocompletes Python code.

Complete-dict--Dictionary file of Python keywords, modules, etc.

pydiction.py--Python script to add more words to complete-dict.

1. Download pydiction:

(1) wget https://github.com/rkulla/pydiction/archive/master.zip #自行下载上传Linux

(2) #这里我使用Git直接下载: Git clone https://github.com/rkulla/pydiction.git

2. Create the directory and copy the file :

MKDIR-PV ~/.vim/tools/pydiction

Cp-r Pydiction/after ~/.vim

CP Pydiction/complete-dict ~/.vim/tools/pydiction

Ensure that the directory structure is as follows:

[Email protected] ~]# tree. Vim

. Vim

├──after

│└──ftplugin

│└──python_pydiction.vim

└──tools

└──pydiction

└──complete-dict

4 Directories, 2 files

Rm-f pydiction #删除程序文件

3. New. vimrc file

Vim ~/.VIMRC

Add the following configuration:

FileType plugin on

Let g:pydiction_location = ' ~/.vim/tools/pydiction/complete-dict '

Let G:pydiction_menu_height = 3

To this configuration complete, the effect



This article is from the "Ljohn" blog, make sure to keep this source http://ljohn.blog.51cto.com/11932290/1931985

Auto-complete Python plugin in Linux vim: pydiction

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.