Loading ...
Sorry, an error occurred while loading the content.

Re: detect windows

Expand Messages
  • Andre Pang
    ... I do something similar to this: if has( win32 ) && has( gui_running ) set gfn=neep-iso8859-1-06x13:h10 else set
    Message 1 of 3 , Jan 30, 2002
    • 0 Attachment
      On Wed, Jan 30, 2002 at 07:19:59PM -0700, Hans Fugal wrote:

      > Ok, my .vimrc is on a samba mount and sometimes I use vim in windows,
      > sometimes in linux. I'd like to set some settings (guifont, for
      > example) differently if I'm in windows than in linux. Is there a
      > variable set that I can check for?

      I do something similar to this:

      if has("win32") && has("gui_running")
      set gfn=neep-iso8859-1-06x13:h10
      set gfn=-ozone-terminal-medium-r-normal-*-*-100-*-*-c-*-iso8859-1

      :help has
      :help feature-list

      #ozone/algorithm <ozone@...> - trust.in.love.to.save
    Your message has been successfully submitted and would be delivered to recipients shortly.