Configuration of the Python programming environment based on VIM

2010-03-17  来源:本站原创  分类:Python  人气:203 

1, configuration files in the directory / etc / or / etc / vim / Here, there is a document called the vimrc, which is the system common vim configuration files are valid for all users. In each user's home directory, can build their own private configuration file, named: ". Vimrc". For example, / root directory, usually one that already exists. Vimrc file.

2. Set sample flexible use of the above options, one can adjust the indent settings.

The following settings can be added to ~ /. Vimrc in:

set sw = 4
set ts = 4

filetype indent on
autocmd FileType python setlocal et sta sw = 4 sts = 4

The first two are about to set shiftwidth and tabstop 4. The third line to open automatic indentation test. Last line of the Python language under the proposal (the tab into four exhibition spaces) for a special setting.
Tip:
setlocal set of results to only the current buffer that will not affect other files open.
Tip:
For more about Python programming settings, see Configuring Vim for Python-based programming environment.
Reference: http://www.linux-wiki.cn/index.php?title=Vim% E4% BB% A3% E7% A0% 81% E7% BC% A9% E8% BF% 9B% E8% AE% BE% E7% BD% AE & variant = zh-hant

相关文章
  • Configuration of the Python programming environment based on VIM 2010-03-17

    1, configuration files in the directory / etc / or / etc / vim / Here, there is a document called the vimrc, which is the system common vim configuration files are valid for all users. In each user's home directory, can build their own private config

  • ubuntu8.04 Notes programming environment configuration 2010-10-18

    Most of the content of this article reprinted from the wiki, there are some content from baidu, google in the order received. In ubuntu8.04 system successfully installed, and have a lot of tools in fact. Editing tools: 1, gedit 2, vi-vim 3, nano (pic

  • Qt programming environment under Windows configuration 2010-03-19

    Eclipse + CDT + MinGW: http://hexlee.javaeye.com/blog/499152 Windows + QT + Eclipse + MinGW tutorial build QT development environment more Keyword: c + + qt eclipse mingw Windows + QT + Eclipse + MinGW detailed tutorial build QT development environme

  • . Windows environment based on Apache's SVN server problems with the configuration process and summary 2010-05-08

    1.Windows environment based on Apache's SVN server installation and configuration 1.1 Installation Install Apache 1.1.1 (1) Download Apache Address http://httpd.apache.org/download.cgi Note: Apache 2.0.54 for Windows version than the existence of com

  • ubuntu8.04 programming environment configuration Notes 2010-10-18

    Most of the content of this article reproduced from the wiki, there is some content from baidu, google in order to get. In ubuntu8.04 system successfully installed, in fact, already comes with many tools. Editing tools: 1, gedit 2, vi-vim 3, nano (pi

  • . Windows environment based on the Apache SVN server configuration and summary of problems 2010-05-08

    1.Windows environment based on the Apache SVN server installation and configuration 1.1 Installation Installing Apache 1.1.1 (1) Download Apache Address http://httpd.apache.org/download.cgi Note: Apache 2.0.54 version of Windows than there are compil

  • Some Python programming article online 2010-09-01

    newthreading - safer concurrency for Python security concurrency (1 response) http://www.starming.com/index.php?action=plugin&v=wave&tpl=union&ac=viewgrouppost&gid=73&tid=7607 Several Google App Engine open source program http://www.st

  • Python development environment - Eclipse development environment 2010-08-28

    In the Eclipse development environment to configure python 1. Download python installation package. Python-2.4.2.msi. And install. This process is very simple, not much said. After the installation is complete, close the installation program, open th

  • Taught you how to put Vim into an IDE programming environment converted 1 2010-10-01

    Taught you how to put Vim into an IDE programming environment modification (Photo) By: Wu Yin Date: 2007-09-07 Version: 0.5 Email: lazy.fox.wu # gmail.com Homepage: http://blog.csdn.net/wooin Copyright: Copyright of the article by Wu Yin and his love

  • win7 python build environment under 2011-05-04

    Remember to build in ubuntu python development environment also under several commands, and who knows the system is not so easy to use into ubuntu11.04 toss a half-day did not do a good job, but to build in the next win7. Found a bit of trouble to re

  • Linux programming environment described in Mod_perl 2011-06-04

    You are viewing Linux | Unix is ​​Linux programming environment described in the Mod_perl 1 Introductory Guide mod_perl is a huge and complex tool, it built a number of modules to help you easily build dynamic Web site. The purpose of this guide is t

  • Python development environment set up under Ubuntu 2011-09-21

    1 Installing MySQL $ sudo apt-get install mysql-server mysql-client After installation, MySQL will by default start in a terminal run the following command to view if MySQL is running $ sudo netstat -tag|grep mysql You can see the results similar to

  • Python programming language and Java Performance Comparison 2010-09-15

    Taken from http://developer.51cto.com/art/201003/187962.htm Python programming language currently in use requires continuous learning. Here we have a detailed look at how to better carry out the relevant knowledge. Recently I've been watching a wxPyt

  • linux c language programming environment to build 2010-10-09

    inux c language programming environment to build Need the following software and development kits: terminal terminal gcc / / compiler cpp libgcc libc6 / / standard library math functions library directory in libc.so.6 binutils / / Connection Kit / Us

  • My vim configuration and plug-small python php IDE 2011-04-18

    My vim configuration and plug-small php and python IDE I am currently in the annex to the full use of vim configuration file. Vimrc and plugins package. Directly into your home directory can be used. If you have your own configuration files to back u

  • Python development environment related presentations 2011-05-22

    Recommendation 2 describes the preferred development environment is a good article: Beginners must know Python: Python development environment to run and python IDE comparison with the recommended In windows, I have tried that comes with Python IDLE,

  • Advanced UNIX Programming Environment (2nd Edition) 2011-01-05

    Advanced UNIX Programming Environment (2nd Edition) is a 09 year bestsellers TOP50, 08 year bestsellers TOP50. Original Title: Advanced Programming in the UNIX Environment Original Press: Addison-Wesley Author: (United States) W. Richard Stevens, Ste

  • Book: Unix Programming Environment 2011-09-18

    Unix Programming Environment

  • windows kernel programming environment configuration 2011-04-05

    Windows kernel programming, a recent study, in order to build a more complete development environment, so that kernel programming more convenient, I collected a lot of information on the Internet, and finally sorted out their own set of relatively go

  • ubuntu8.10 kernel driver module programming environment configuration 2011-02-19

    A great article for the module, the drive for a very good turn http://hi.baidu.com/zhouhanqing/blog/item/7f283eca2ea9ce17bf09e6bf.html environment This is a reference to more posts and the Internet is not really written anything original. The only go