2006年11月19日VI的主题安装、判断YYYY-MM-DD正则表达式考虑闰年
来源:互联网 发布:单片机基础 编辑:程序博客网 时间:2024/06/07 00:37
2006年11月19日 星期六 天气阴 Last Modify: Nov 19 2006
==================================================================================
今天下载了一个VI的颜色主题
moria : A color scheme for GUI supposed to be highly readable
特点在于关键字在Mix模式下可以为粗体,虽然没有什么意思(因为在暗色模式下关键字已经高亮了),但是还是个有用的尝试。下面是他的安装指南。感觉在VI里缩进文本真是麻烦,不支持鼠标拖放,只能说是写代码的好工具……
判断YYYY-MM-DD正则表达式
-----------------------
这里是判断YYYY-MM-DD这种格式的,基本上把闰年和2月等的情况都考虑进去了,不过我已经忘了在哪里找到的。
^((((1[6-9]|[2-9]/d)/d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]/d|3[01]))|(((1[6-9]|[2-9]/d)/d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]/d|30))|(((1[6-9]|[2-9]/d)/d{2})-0?2-(0?[1-9]|1/d|2[0-8]))|(((1[6-9]|[2-9]/d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))$
下面的是加了时间验证的
^((((1[6-9]|[2-9]/d)/d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]/d|3[01]))|(((1[6-9]|[2-9]/d)/d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]/d|30))|(((1[
VI的主题安装
-------------------------
install details
Just put it in "~/.vim/colors" or in "
The color scheme choses the color scheme 'dark' if 'background' is set to dark and 'light' if 'background' is set to light. One can override this by setting the variable 'moria_style'. Its possible values are 'black', 'dark', 'darkslategray', 'light', and 'white'. The 'dark' scheme has #202020 as its background, the 'light' scheme #f0f0f0, the 'darkslategray' scheme DarkSlateGray, the 'black' ('white') scheme has a black (white) background. If you want to use the 'white' scheme, just do
let moria_style = 'white'
colo moria
in your vimrc file. Alternatively, you can set the option 'background' instead of 'moria_style' to 'dark' or 'light' and the color scheme applies either the 'dark' scheme or the 'light' one.
In gVim you can do 'Colo black', 'Colo dark', 'Colo darkslategray', 'Colo light', and 'Colo white' to swith to the color scheme you want. In Vim (console version) these commands just swith between a dark and a light scheme.
In the dark schemes ('black', 'dark', and 'darkslategray') bold highlights are avoided. However, some people like the highlights 'Statement' and 'Type' to be bold. If you belong to these people, just add
let moria_fontface = 'mixed'
to your vimrc file (before 'colo moria', of course).
Rev 1.0 Create Document Nov 19 2006
- 2006年11月19日VI的主题安装、判断YYYY-MM-DD正则表达式考虑闰年
- 判断"yyyy年mm月dd日"的日期格式
- yyyy-MM-dd格式的正则表达式
- 正则表达式 验证YYYY-MM-DD HH:mm:ss,包含闰年验证(包含世纪年和普通闰年)
- 正则表达式 验证YYYY-MM-DD HH:mm:ss,包含闰年验证(包含世纪年和普通闰年)
- 日期 yyyy-mm-dd 的正则表达式(能够区分真实日期,区分闰年)
- yyyy-mm-dd正则表达式
- 日期格式化yyyy年MM月dd日aHH:mm
- Oracle中把yyyy-mm-dd转成yyyy年mm月dd日
- Oracle中把yyyy-mm-dd转成yyyy年mm月dd日
- yyyy-mm-dd hh:mm:ss的正则表达式
- 正则表达式 日期 yyyy/mm/dd || yyyy-mm-dd
- HH:mm YYYY-dd-mm 正则表达式
- SimpleDateFormat 转化指定格式yyyy年MM月dd日
- js实现yyyy年MM月dd日 星期N
- java利用正则表达式判断输入的日期格式为yyyy/MM/dd
- 匹配yyyy-mm-dd日期格式的的正则表达式
- 正则表达式匹配日期格式yyyy-mm-dd(支持闰年)
- 充分展现C# 在 gis、gps及串口方面的应用
- Ubuntu安装过程之磁盘分区图文教程[转帖]
- 数据库读写以及一些SQL语句
- csc 用法
- 给datatable中添加新列并赋值的方法
- 2006年11月19日VI的主题安装、判断YYYY-MM-DD正则表达式考虑闰年
- Article Test
- seam and webservice
- 数据结构——红黑树
- 在.net中如何清除Cooike
- Java开发者需坚守的十大基本准则
- 2006年11月21日
- 用JS实现CheckBox的全选 修改 取消 查询 删除函数和图片实现添加 返回的链接
- 各种缓存的比较