Vim Usage and configuration

Source: Internet
Author: User

When Vim starts, the user directory is loaded by default. VIMRC configuration file, if it does not exist, the system configuration file is loaded/ETC/VIM/VIMRC

~/.VIMRC file Configuration

#避免中文乱码
Set fileencodings=utf-8, ucs-bom,gb18030,gbk,gb2312,cp936set termencoding=utf-8Set Encoding=utf-8
#显示语法高亮 Syntax on
#显示行号set nu
#设置默认tab键位为4Set TabStop=4

eg

  -# Enable and configure HTTP caching (disabled by default) -# See http://scrapy.readthedocs.org/en/latest/topics/downloader-middleware.html#httpcache-middleware-settings  the#HTTPCACHE_ENABLED =True the#HTTPCACHE_EXPIRATION_SECS =0  the#HTTPCACHE_DIR ='HttpCache'  the#HTTPCACHE_IGNORE_HTTP_CODES = []  -#HTTPCACHE_STORAGE ='Scrapy.extensions.httpcache.FilesystemCacheStorage'  the   the# Modify Scrapy default scheduler for Scrapy rewrite Scheduler to start read Queue Scheduler crawler from Reids cache theSCHEDULER ="Scrapy_redis.scheduler.Scheduler" 94   the# scheduled state persistence, no Redis cache cleanup, allow pause/Start crawler theScheduler_persist =True the  98# Specify the address and port of Redis (optional, the program will use the default address of localhost:6379)  AboutRedis_host ='localhost' -Redis_port =6378

Vim Usage and configuration

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.