Python VIM Configuration win7x64

Source: Internet
Author: User
Tags delete key

Thank you: http://www.cnblogs.com/renrenqq/archive/2010/09/09/1813669.html

However, there are some errors, and deficiencies, the process is now recorded as follows:

Download and install Python.

Download vim from the VIM website and suggest the self-installing executable version.

Edit Vim's configuration file _VIMRC

Copy the vimrc_example inside to _VIMRC.

Remove the source inside the _VIMRC $VIMRUNTIME/vimrc_example.vim

Set up Chinese support

" set encoding automatic recognition, Chinese quotation marks  display " Set Fileencodings=utf-8,cp936,big5,euc-jp,euc-kr,latin1,ucs-bom   set fileencodings=utf-8, GBK  set ambiwidth=double

Set ColorScheme, I chose desert, you can see the other Color scheme in Gvim's Edit-->color scheme.

" ColorSchemeColorScheme Desert

Set tab Insert space, indent, delete key Delete indent, page text width

" allow backspace key Delete and tab action   Set smartindent   Set Smarttab   Set Expandtab    Set tabstop=4  set softtabstop=4  set shiftwidth= 4  set backspace=2set textwidth=

Enable the mouse to enable line numbers

" Enable mouse   set mouse=a    "  Enable line number   set

Ctags+taglist

Usually we do not use ctags alone, generally with taglist and other plug-in use.

Download Ctags in the official website, the folder Ctags.exe in any folder, such as D:\OpenSource\Vim (note that the file path can not have spaces or Chinese characters, or taglist and other plug-ins can not find the location of Ctags.exe). It's best to put it in D:\Program files\vim\vim74so that you don't need a complicated setup behind it.

Download TagList on the official website, put Taglist.vim into the plugin folder of the installation directory, mine is D:\Program Files\vim\vim74\plugin.

With Ctags and taglist, we can easily see the functions, classes, variables, etc. contained in the file.

" TagList Let tlist_ctags_cmd='D:\Develop\vim\VIM\vim74\ctags.exe'lettlist_auto_ Open=1

Execute in VIM: tlist can open or close the TagList window

Installation Code Auto-complete tool pydiction

Download Pydiction on the official website and place the Python_pydiction.vim, Complete_dict and pydiction.py three files in D:\Program Files\vim\vim74\ftplugin. The TAB key can be used to complete the auto-completion.

" pydiction ' D:\Program files\vim\vim73\ftplugin\complete-dict '   -

Python VIM Configuration win7x64

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.