Created
December 18, 2011 02:27
-
-
Save jtmohr/1492157 to your computer and use it in GitHub Desktop.
Conditional testing to detect Windows systems
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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