找到相关内容 5
【vim】gVim fun! of the week(7)--时刻提醒"睡觉/吃饭/下班"
上班时,不能忘掉'睡觉/吃饭/下班'! 没问题, Vim提醒你! 抬头就能看见Clock, 低头看见Color, 很方便! set laststatus=2 statusline=%<%F\ %1*%m%*%=%-10(%3l,%2c%V%)%25(%L\ lines\ --%P--%)set title titlestring=%<%t\ (%F)%m%=%{ShowClock()
http://cyqdata.cn/cnblogs/article-detail-40240 
【vim】gVim fun! of the week(4)
用python写vim函数, 用来查google字典 com! -nargs=+ Dict call Dict(<f-args>)fun! Dict(...) if !has('python') echohl ErrorMsg | echo 'python is not supported!' | echohl None return end
http://cyqdata.cn/cnblogs/article-detail-40117 
【vim】gVim fun of the week(2)
令我头大的编码风格: if(3 <= fun(x) || 6 >= fun(y)) {...} 与我的思维方式相反,每次都要改成: if(fun(x)>=3 || fun(y)<=6) {...} 这样,头才不晕! 每次都这样机械地改,很浪费时间,倒不如写个函数,绑定到v_x上 vmap x c<C-R>=XOperand(@")<CR>&
http://cyqdata.cn/cnblogs/article-detail-39777 
【vim】gVim fun! of the week(3)
在编辑文本时,常常需要对一列数字求和,就像在Excel中一样,选中这些数字,在状态栏,显示SUM gVim作为一款高级TextEditor,功能自然比Excel强大,不光可以显示SUM,还可以提供一个正则表达式作为查询条件 com! -nargs=? -range SUM <line1>,<line2>call Sum('<args>')fun! Sum(re
http://cyqdata.cn/cnblogs/article-detail-39776 
Windows Gvim 全局配置
Windows Gvim 全局配置   今天在win7下使用gvim打开以前在ubuntu下用vim写的文档时,显示的中文全是乱码,这可不行! google了一下,知道了在console下输入: set encoding=utf-8  解决问题。   但是每打开一个这样的文件都要设置,gvim不是有全局设置吗?找了菜单半天没找到解决方法,再次google,都说是有一
http://cyqdata.cn/cnblogs/article-detail-4430