Vim usage and Python plug-in settings

Source: Internet
Author: User

 

Install python. Vim syntax highlighting

Copy python. Vim ~ /. Vim/afer/ftplugin

In ~ /. Add configuration in vimrc

Set autoindent "same level indent
Set smartindent "Next level indent
Set expandtab
Set tabstop = 4
Set shiftwidth = 4
Set softtabstop = 4

Automatic pydiction installation completed:

Unix/Linux: Place python_pydiction.vim in :~ /. Vim/after/ftplugin/

If this directory doesn' t already exist, create it. Vim looks there automatically.

Windows: Assuming you installed Vim to C: \ Vim \, put python_pydiction.vim in c: \ Vim \ vimfiles \ ftplugin

You may install the other files (complete-dict and pydiction. PY) anywhere you want. for this example, we'll assume you put them in c: \ Vim \ vimfiles \ ftplugin \ pydiction \

Don't put any files but python_pydiction.vim in the ftplugin directory, only. Vim files shoshould go there.

In your vimrc file, first Add the following line to enable ftplugins:

Filetype plugin on

Then make sure you set "G: pydiction_location" to the full path of where you installed complete-dict, I. e .:

Let G: pydiction_location = 'C:/Vim/vimfiles/ftplugin/pydiction/complete-dict'

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.