Skip to content

Instantly share code, notes, and snippets.

@RobertAudi
Created February 23, 2011 09:03
Show Gist options
  • Save RobertAudi/840197 to your computer and use it in GitHub Desktop.
Save RobertAudi/840197 to your computer and use it in GitHub Desktop.
Vim OS Check
" -OS-Check---------------------------------------------------------------------
function! MySys()
if has("win32")
return "win32"
elseif has("mac") || has("macunix")
return "mac"
elseif has("unix")
return "unix"
else
return "unix"
endif
endfunction
" ------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment