TextMate的Windows/Linux替代品?
Thursday, 7. June 2007, 00:27:08
看了TextMate主页上的《Windows/Linux alternative?》这篇文章,下面有超过150条的评论(目前),通过这些评论,大体上可以看出当今主流编辑器的分布状况,还能发现不少好东西。没来得及把评论一一看完,打算有时间再去看。
无不用其“极”
Thursday, 7. June 2007, 00:27:08
Saturday, 2. June 2007, 14:04:26
Monday, 5. February 2007, 05:42:04
Wednesday, 13. December 2006, 02:29:55
" vim设置文件 ( .vimrc 或 _vimrc )
"-----------------------------------------------------------------------------
" 字符编码相关
"
" 多字节编码设置,必须放在.vimrc顶部
"
if has("multi_byte")
" When 'fileencodings' starts with 'ucs-bom', don't do this manually
"set bomb
set fileencodings=ucs-bom,chinese,taiwan,japan,korea,utf-8,latin1
" CJK environment detection and corresponding setting
if v:lang =~ "^zh_CN"
" Simplified Chinese, on Unix euc-cn, on MS-Windows cp936
set encoding=chinese
set termencoding=chinese
if &fileencoding == ''
set fileencoding=chinese
endif
elseif v:lang =~ "^zh_TW"
" Traditional Chinese, on Unix euc-tw, on MS-Windows cp950
set encoding=taiwan
set termencoding=taiwan
if &fileencoding == ''
set fileencoding=taiwan
endif
elseif v:lang =~ "^ja_JP"
" Japanese, on Unix euc-jp, on MS-Windows cp932
set encoding=japan
set termencoding=japan
if &fileencoding == ''
set fileencoding=japan
endif
elseif v:lang =~ "^ko"
" Korean on Unix euc-kr, on MS-Windows cp949
set encoding=korea
set termencoding=korea
if &fileencoding == ''
set fileencoding=korea
endif
endif
" Detect UTF-8 locale, and override CJK setting if needed
if v:lang =~ "utf8$" || v:lang =~ "UTF-8$"
set encoding=utf-8
endif
else
echoerr 'Sorry, this version of (g)Vim was not compiled with "multi_byte"'
endif
"-----------------------------------------------------------------------------
" 不明宽度字符的宽度设置
if exists("&ambiwidth")
set ambiwidth=double
endif
"-----------------------------------------------------------------------------
" 自动认识换行符
set fileformats=unix,dos,mac
"-----------------------------------------------------------------------------
" 编辑相关
"
" 自动缩进
set autoindent
"-----------------------------------------------------------------------------
" 检索相关
"
"不分大小写
set ignorecase
"大小写敏感
set smartcase
"找到最后一项后返回第一项
set wrapscan
"关闭部分匹配模式
set noincsearch
"-----------------------------------------------------------------------------
" 显示相关
"
"窗口大小
set lines=40
set columns=120
"打开语法彩显
syntax on
"设置配色方案
"colorscheme evening
"不显示行号
set nonumber
"tab左侧显示提示符
set listchars=tab:\ \
set list
"tab的宽度设置
set tabstop=4
set shiftwidth=4
"状态栏里显示输入的命令
set showcmd
"输入括号时显示匹配括号
set showmatch
"搜索结果高亮显示
set hlsearch
"一直显示状态栏
set laststatus=2
"状态栏里显示文字编码和换行符等信息
set statusline=%<%f\ %m%r%h%w%{'['.(&fenc!=''?&fenc:&enc).']['.&ff.']'}%=%l,%c%V%8P
"-----------------------------------------------------------------------------
" 按键映射
"
"F2: 编辑另一个文件(接着输入文件名)
"F3: 上一文件
"F4: 下一文件
"F5: 显示行号
"F6: 不显示行号
"F7: 高亮显示搜索结果
"F8: 不高亮显示搜索结果
"F9: Shell环境(执行exit返回)
map <F2> :edit
map <F3> :bp <CR>
map <F4> :bn <CR>
map <F5> :set nu <CR>
map <F6> :set nonu <CR>
map <F7> :set hlsearch <CR>
map <F8> :set nohlsearch <CR>
map <F9> :shell <CR>
Friday, 1. September 2006, 04:48:22
Wednesday, 9. August 2006, 01:16:31
Friday, 16. June 2006, 06:40:51
Thursday, 30. March 2006, 08:21:53
Showing posts 11 - 18.
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
| ||||||
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 | 31 | ||
LinuxSir
Linux中坚站
为Linux工程师提供技术动力
打造中国最大的UNIX/LINIX资讯站
My mirror, my window, the bridge connecting you and I.
关注:php,mysql,ajax ,linux, js,开源
有用的Opera菜单
なにもあたらしくない
By Adam Li
By Satoru Watanabe
by singway
by 摸鱼儿
by Somh
by 法师
by yumumao
Maybe I was a Bird in another Life !
投放广告挣美元,可用PayPal接收付款
免费网页模板
数据表格样式收集