Python VIM environment configuration practical application solution and sample code

Source: Internet
Author: User

If you want to understand the actual application solution of Python VIM environment configuration, you can click our article to introduce the functions and related skills of Python VIM environment configuration, I hope you will gain some benefits when browsing the following articles. The following is a description of the article.

1. VIM python auto-completion plug-in:

Pydiction this is a pretty good script automatically completed by Python code. The following python code can be automatically completed: simple python keyword completion
 

Applicable to Versions later than VIM7.

1. python_pydiction.vim

Change the file

 
 
  1. python_pydiction.vim  

Put in

 
 
  1. ~/.vim/after/ftplugin/  

If the path does not exist, you can create the folder structure by yourself. In a directory similar to that in Windows ). The above content is an example of the path code in the Python VIM environment configuration.

2. complete-dict

Put the complete-dict file in a path of your own, and the subsequent configuration will use this file. This file is used to record all python keywords. I put this file

 
 
  1. ~/.vim/tools/pydiction/complete-dict  

3. Configure the. vimrc file in ~ /Add the following configuration to the vimrc file:

 
 
  1. "pydiction 1.2 python auto completefiletype
     plugin onlet g:pydiction_location = '~/.vim/
    tools/pydiction/complete-dict'"defalut g:pydiction_
    menu_height == 15"let g:pydiction_menu_height = 20  

The above content introduces the actual operations of the Python VIM environment configuration.

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.