>
> is there any way known to distinguish between different OSs in the .vimrc?
>
> E.g.:
>
> if OS='Mac'
> set gfn=Monaco
> else
> set gfn=Monospace
> end
Yes, plenty of ways:
:help has()
:help feature-list
E.g.:
has("amiga")
has("win32")
has("win16")
has("win95")
has("dos32")
has("dos16")
has("unix")
has("mac")
has("macunix")
has("os2")
has("vms")
has("gui_athena")
has("gui_gnome")
has("gui_gtk")
has("gui_gtk2")
has("gui_mac")
has("gui_motif")
has("gui_win32")
has("gui_win32s")
has("x11")
--
Steve Hall [ digitect dancingpaper com ]
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment