
vim
RJxiaowu
这个作者很懒,什么都没留下…
展开
-
配置vim(windows)
"[start] 基本配置 "显示行号 set nu "取消备份 set nobk "设置历史记录步数 set history=100 "当文件在外部被修改,自动更新该文件 set autoread "windows下可以解决vim打开utf-8文件出现中文乱码的问题 set fileencodings=utf-8,cp936,gb18030,gbk,gb2312,...2012-11-03 14:04:35 · 97 阅读 · 0 评论 -
vim 自定义函数
"count number of words from line a:firstline to line a:lastline function Cntws() range let n = 0 let i = a:firstline while i <= a:lastline let n += len(split(getline(i)))...原创 2012-08-18 12:21:22 · 333 阅读 · 0 评论 -
vim命令使用
空格替换为换行 :%s/ +/\r/gc2014-05-10 15:06:06 · 162 阅读 · 0 评论