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
This is the easiest way I have found.
if system('uname -s') == "Darwin\n" "OSX set clipboard=unnamed else "Linux set clipboard=unnamedplus endif