1、关闭vi的一致性模式set nocompatible2、配置backspace的工作方式set backspace=indent,eol,start3、显示行号set number4、设置在编辑过程中右下角显示光标的行列信息set ruler5、在状态栏显示正在输入的命令set showcmd6...
分类:
其他好文 时间:
2014-07-16 18:33:25
阅读次数:
186
css左右两列布局:高度100%,左侧float,右侧自动宽度(无float,overflow为auto)、白色字体:color:#FFFFFF;不错的蓝色背景:background:#0099CC;浅一点的不错的背景色: background:#B0CFFA;段落缩进: text-indent:2...
分类:
Web程序 时间:
2014-07-09 13:25:47
阅读次数:
237
/* 首行缩进 */text-indent:10px;/* 下划线 */text-decoration:none;none:无下划线;underline:下划线;overline:上划线;line-through:中划线;注意点CSS样式优先级A、选择器都有一个权值,权值越大越优先B、当权值相等时,...
分类:
Web程序 时间:
2014-07-05 17:09:03
阅读次数:
234
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- *//** This program is free software; you can redistribute it and/or modify* it under th...
分类:
其他好文 时间:
2014-06-28 10:59:12
阅读次数:
244
早年~楔子在xx项目中,为各网点图标隐藏文字时,用了{text-indent:-9999em;}的方式,结果IE6/7下图片就不见了,如下:正常浏览器:IE6/7:平时对于这种情况下的文字隐藏,多用line-height(下文提到的方式三)的方式,并没有认真去考虑它的优劣,也没有进行其他方式的测试和...
分类:
其他好文 时间:
2014-06-27 21:43:15
阅读次数:
261
配合lvs的ha模式,lvs的ha模式可以参考这里ssdb主机:192.168.1.104192.168.1.108修改ssdb.conf104主机# ssdb-server config# MUST indent by TAB!# relative to path of this file, di...
分类:
数据库 时间:
2014-06-25 16:21:01
阅读次数:
449
建立总线型拓扑。/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- *//** This program is free software; you can redistribute it and/or modify* it ...
分类:
其他好文 时间:
2014-06-24 10:54:21
阅读次数:
224
在实际应用中,考虑到seo,很多button,icon都要用到inline-block和text-indent来处理,例如:Buttoncss我习惯写成这样.btn{display:inline-block; width:100px; height:23px; text-indent:-9999px...
分类:
其他好文 时间:
2014-06-22 12:56:49
阅读次数:
204
当用vim拷贝某一段代码到另一个程序的时候,往往indent会有一些问题。。
下面这个强大的命令能够让你一键让代码有很好的格式。
gg=G
例子:...
分类:
其他好文 时间:
2014-06-18 07:06:14
阅读次数:
206
Linux下有一个方便的c语言程序排版工具,只要选择恰当的参数,可以轻易地使自己的程序具有统一的风格。
indent参数众多,可以自行查看man文档,下面是我个人使用的命令:
indent -i2 -bli 0 -sob -npsl input.c -o output.c
其中:
-i n:设置缩排的格数
-bli n:设置{ }缩排的格数
-sob:删除多余的空白行
-npsl:...
分类:
其他好文 时间:
2014-06-15 14:16:20
阅读次数:
233