]> code.delx.au - dotfiles/blobdiff - .vim/state.vim
Vim: Explicitly turn on modelines (SuSE turns them off)
[dotfiles] / .vim / state.vim
index d94bb7c6cbb3fa981b719bedb71786ed194db47f..a0047ed95ee732ed309e9ceb29acd45b0fc98378 100644 (file)
@@ -9,12 +9,14 @@ 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
+       set backupdir=~/tmp/vimbak
 endif
-set backupdir=~/tmp/vimbak
+
+" Use modelines
+set modelines=5