Skip to content

Instantly share code, notes, and snippets.

@jtmohr
jtmohr / detect_windows.vim
Created December 18, 2011 02:27
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