]> code.delx.au - dotfiles/blobdiff - .vim/state.vim
screenrc rewrite
[dotfiles] / .vim / state.vim
index d94bb7c6cbb3fa981b719bedb71786ed194db47f..9df6ea696c6908331cd4d13f83782c30a91423b3 100644 (file)
@@ -9,12 +9,17 @@ set history=100
 
 " Make a backup (i. e. 'file~') and save it.
 set backup
-" create ~/tmp/ if it doesn't exist and use ~/tmp to save the 
-" backups into
+" create ~/tmp/vimbak if it doesn't exist and use it to save the backups
 if has("unix")
-       if !isdirectory(expand("~/tmp/vimbak/."))
-               !mkdir -p ~/tmp/vimbak
-       endif
+    if !isdirectory(expand("~/tmp/vimbak/."))
+        !mkdir -p ~/tmp/vimbak
+    endif
+    set backupdir=~/tmp/vimbak
 endif
-set backupdir=~/tmp/vimbak
+
+" Create backups by copying files to backup directory instead of renaming
+set backupcopy=yes
+
+" Use modelines
+set modelines=5