Vim 中有两个与编码有关的变量,如果理解了基本就不会再为编码问题头疼了。 encoding :Vim 内部编 […]
Continue reading…
Posts by laixintao
无价的价值
今天看到一则杂闻,摘抄简略如下: 假离婚变真离婚,真相原来这般残酷!在北京工作的小琴(化名)近日在网上发帖讲述 […]
Continue reading…
爬虫如何判断一个页面更新了?
一个网页距离爬虫上次访问是否更新了,这个是重要但是又非常难判断的问题。如果只是一次性抓取来一些数据来用,那这个 […]
Continue reading…
Vim缩进有关的设置总结
|
1 2 3 4 5 6 7 |
set expandtab "Use softtabstop spaces instead of tab characters for indentation set shiftwidth=4 "Indent by 4 spaces when using >>, <<, == etc. set softtabstop=4 "Indent by 4 spaces when pressing <TAB> set autoindent "Keep indentation from previous line set smartindent "Automatically inserts indentation in some cases set cindent "Like smartindent, but stricter and more customisable |
tabstop : 一个tab等于多少个空格 […]
Continue reading…
Shell单引号、双引号和反引号的区别
每次在shell用到引号的时候,都会因为用单引号还是双引号纠结不已。最近看了《Shell十三问》,终于弄清楚了 […]
Continue reading…