]> code.delx.au - dotfiles/commitdiff
Vim: Explicitly turn on modelines (SuSE turns them off)
authorJames Bunton <jamesbunton@delx.net.au>
Wed, 14 May 2008 00:53:57 +0000 (10:53 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Wed, 14 May 2008 00:53:57 +0000 (10:53 +1000)
.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