Create a gist now

Instantly share code, notes, and snippets.

Conditional testing to detect Windows systems
if has('win32') || has('win64')
set backupdir=~/vimfiles/backup
set directory=~/vimfiles/tmp
else "(Not running Windows)
set backupdir=~/.vim/backup
set directory=~/.vim/tmp
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment