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

65294Re: vim/gvim distinction in .vimrc

Expand Messages
  • A. J. Mechelynck
    Jan 31, 2006
    • 0 Attachment
      Matthias Langer wrote:
      > Normally i use gvim with a white background. But sometimes, when i just
      > want to do some small modifications to a file i prefer to use vim from a
      > gnome-terminal with a dark background. Thus, i have to
      > ':set bg=dark' before start editing. Now i'm woundering if there isn't a
      > way to tell vim to use bg=dark only for vim but not for gvim, propably
      > in my .vimrc.
      >
      > Thanks,
      > Matthias
      >
      >
      >
      >

      Normally it should do this by default (check it in vim, or maybe by
      loading vim as "vim -N -u NONE"). If it doesn't:

      if !has("gui_running")
      set bg=dark
      endif


      see under ":help feature-list":

      gui_running Vim is running in the GUI, or it will start soon.



      Best regards,
      Tony.
    • Show all 6 messages in this topic