set backup
" 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
+ if !isdirectory(expand("~/tmp/vimbak/."))
+ !mkdir -p ~/tmp/vimbak
+ endif
+ set backupdir=~/tmp/vimbak
endif
" Create backups by copying files to backup directory instead of renaming