瀏覽代碼

Disable backup for vim

DricomDragon 5 年之前
父節點
當前提交
103bddca89
共有 1 個文件被更改,包括 4 次插入8 次删除
  1. 4 8
      Install/Templates/vimrc

+ 4 - 8
Install/Templates/vimrc

@@ -115,14 +115,10 @@ if has('langmap') && exists('+langremap')
   set nolangremap
 endif
 
-if has("vms")
-  set nobackup " do not keep a backup file, use versions instead
-else
-  set backup " keep a backup file (restore to previous version)
-  if has('persistent_undo')
-    set undofile " keep an undo file (undo changes after closing)
-    set undodir=/tmp/
-  endif
+set nobackup " do not keep a backup file, use versions instead
+if has('persistent_undo')
+  set undofile " keep an undo file (undo changes after closing)
+  set undodir=/tmp/
 endif
 
 " Add optional packages.