Skip to content

Instantly share code, notes, and snippets.

@jtmohr
Created December 18, 2011 02:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jtmohr/1492157 to your computer and use it in GitHub Desktop.
Save jtmohr/1492157 to your computer and use it in GitHub Desktop.
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