I use my .vimrc file on my laptop (OS X) and several servers (Solaris & Linux), and could hypothetically someday use it on a Windows box. I know how to detect unix gene
gui_macvim gui_gtk2 gui_gtk gui_win32
There is a OS detection script somewhere on stackoverflow - more keywords to find it: win64 win95 macunix...