set encoding=utf8
set paste
set expandtab
set textwidth=4
set softtabstop=4
set shiftwidth=4
set autoindent
set backspace=indent, eol, start
set incsearch
set ignore
set ruler
set wildmenu
...
分类:
编程语言 时间:
2015-01-09 00:18:04
阅读次数:
212
1、slime用“C-o”下开新行,在配置文件slime.el中加入:(walker放在了Keybindings那一段);;自定义快捷键
;下开新行
(defunstart-newline-next()
(interactive)
(end-of-line)
(newline-and-indent))
(global-set-key(kbd"C-o")‘start-newline-next)***walker*2015-01-07***
分类:
系统相关 时间:
2015-01-07 15:12:25
阅读次数:
251
:1,$s/^}/}\r/
参数
1,$ - 执行区间,全文本
s - 替换命令
^} - 以字符'}'起头的行
}\r - 将起头的‘}’替换成‘}\r’,即在函数结尾后添加一个空白行。如果想添加多个空白行,根据需要添加'\r'即可。
如果函数收尾的'}'前存在空白,则不执行操作。为了避免此情况的发生,可以先使用indent工具对源代码进行一次格式化(format)!比如‘ ...
分类:
系统相关 时间:
2015-01-06 12:04:10
阅读次数:
237
1.括号配对高亮:“在前括号左侧,后括号左侧” 双击鼠标左键,可以选定匹配括号和其中内容(,(),L{R},[]之间)2.让{ 和 } 不缩进:Options -> Document Options -> Auto Indenting -> Auto Indent Type 选 Simple还有:让...
分类:
其他好文 时间:
2015-01-05 16:21:13
阅读次数:
149
line143:recv() 1 /* -*- Mode:C++; c-basic-offset:8; tab-width:8; indent-tabs-mode:t -*- */ 2 /* 3 * Copyright (c) 1996 Regents of the Universit...
分类:
其他好文 时间:
2015-01-02 19:53:08
阅读次数:
216
ns2--tcp-full.cc 1 /* -*- Mode:C++; c-basic-offset:8; tab-width:8; indent-tabs-mode:t -*- */ 2 3 /* 4 * Copyright (c) Intel Corporation 2...
分类:
其他好文 时间:
2014-12-29 10:11:33
阅读次数:
567
都知道python是对格式要求很严格的,写了一些python但是也没发现他严格在哪里,今天遇到了IndentationError: unexpected indent错误我才知道他是多么的严格。? ??? 以后遇到了IndentationError: unexpecte...
分类:
编程语言 时间:
2014-12-24 16:29:52
阅读次数:
195
json.dumps({'text':"中文"},ensure_ascii=False,indent=2)python json模块 字典得到字符串,输出中文
分类:
编程语言 时间:
2014-12-19 23:19:19
阅读次数:
240
本文地址:http://www.zhangxinxu.com/wordpress/?p=3557一、文不在长,有货则灵图片式按钮的文字隐藏看来是大家都比较关注的一个问题(分享讨论、微博转发等可见一斑),text-indent负值为最常用方法,然问题有三:较大的负值有性能问题,例如新浪/腾讯微博提交按...
分类:
其他好文 时间:
2014-12-19 14:27:07
阅读次数:
193
中文文字中的段前习惯空两个文字的空白,这个特殊的样式可以用下面代码来实现:
p{text-indent:2em;},在head头里面写上下面的代码
p{text-indent:2em;}
注意:2em的意思就是文字的2倍大小。text-indent就是缩进的意思...
分类:
Web程序 时间:
2014-12-13 13:33:47
阅读次数:
1003