welcome to mr_woggle's homepage

backup and swap files with vim

  " create backup files while/after editing
  :set backup
  :set writebackup
  :set backupdir=~/.vim/edited-files

  " swap files (after >200 chareacters edit)
  :set swapfile
  :set directory=~/.vim/swap-files