We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f1578c commit b94a2b2Copy full SHA for b94a2b2
_vimrc
@@ -7,6 +7,9 @@
7
" Change:
8
" [+]new feature [*]improvement [!]change [x]bug fix
9
"
10
+" [*] 2010-11-23
11
+" 改进 Vim7.3 相关的配置,使其支持 UNIX 系统
12
+"
13
" [!] 2010-11-22
14
" 增加 void 配色,更改配色设置(蛋疼)
15
@@ -272,6 +275,25 @@ else
272
275
echoerr "Sorry, this version of (g)vim was not compiled with +multi_byte"
273
276
endif
274
277
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
297
298
" =========
299
" AutoCmd
0 commit comments