Skip to content

Commit b94a2b2

Browse files
author
mingcheng
committed
update _vimrc for fit vim7.3 under unix sys
1 parent 4f1578c commit b94a2b2

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

_vimrc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
" Change:
88
" [+]new feature [*]improvement [!]change [x]bug fix
99
"
10+
" [*] 2010-11-23
11+
" 改进 Vim7.3 相关的配置,使其支持 UNIX 系统
12+
"
1013
" [!] 2010-11-22
1114
" 增加 void 配色,更改配色设置(蛋疼)
1215
"
@@ -272,6 +275,25 @@ else
272275
echoerr "Sorry, this version of (g)vim was not compiled with +multi_byte"
273276
endif
274277

278+
" 永久撤销,Vim7.3 新特性
279+
if has('persistent_undo')
280+
set undofile
281+
282+
" 设置撤销文件的存放的目录
283+
if has("unix")
284+
set undodir=/tmp/,~/tmp,~/Temp
285+
else
286+
set undodir=d:/temp/
287+
endif
288+
set undolevels=1000
289+
set undoreload=10000
290+
endif
291+
292+
" Diff 模式的时候鼠标同步滚动 for Vim7.3
293+
if has('cursorbind')
294+
set cursorbind
295+
end
296+
275297

276298
" =========
277299
" AutoCmd

0 commit comments

Comments
 (0)