public
Created

Conditional testing to detect Windows systems

  • Download Gist
detect_windows.vim
VimL
1 2 3 4 5 6 7
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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.