Skip to content

Instantly share code, notes, and snippets.

@darfink
Created September 29, 2014 10:02
Show Gist options
  • Save darfink/05e1bce28458e1764888 to your computer and use it in GitHub Desktop.
Save darfink/05e1bce28458e1764888 to your computer and use it in GitHub Desktop.
if has('unix')
set backupdir=~/.vim/backup
set backupskip=/tmp/*,/private/tmp/*
set directory=~/.vim/tmp
set undodir=~/.vim/undodir
elseif has('win32')
set backupdir=$HOME/AppData/Local/backup
set directory=$HOME/AppData/Local/tmp
set undodir=$HOME/AppData/Local/undo
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment