vim 启动的时候,默认加载用户目录下.vimrc的配置文件,如果不存在,则会加载系统配置文件/etc/vim/vimrc
~/.vimrc文件配置
#避免中文乱码
set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936 set termencoding=utf-8 set encoding=utf-8
#显示语法高亮 syntax on
#显示行号 set nu
#设置默认tab键位为4 set tabstop=4
eg:
84 # Enable and configure HTTP caching (disabled by default) 85 # See http://scrapy.readthedocs.org/en/latest/topics/downloader-middleware.html#httpcache-middleware-settings 86 #HTTPCACHE_ENABLED = True 87 #HTTPCACHE_EXPIRATION_SECS = 0 88 #HTTPCACHE_DIR = 'httpcache' 89 #HTTPCACHE_IGNORE_HTTP_CODES = [] 90 #HTTPCACHE_STORAGE = 'scrapy.extensions.httpcache.FilesystemCacheStorage' 91 92 # 修改scrapy默认的调度器为scrapy重写的调度器 启动从reids缓存读取队列调度爬虫 93 SCHEDULER = "scrapy_redis.scheduler.Scheduler" 94 95 # 调度状态持久化,不清理redis缓存,允许暂停/启动爬虫 96 SCHEDULER_PERSIST = True 97 98 # 指定redis的地址和端口(可选,程序将使用默认的地址localhost:6379) 99 REDIS_HOST = 'localhost' 100 REDIS_PORT = 6378
只知道不行动是纸上谈兵,只行动不思考更像是无头的苍蝇,要知行合一。