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