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

65312Re: vim/gvim distinction in .vimrc

Expand Messages
  • Matthias Langer
    Feb 1, 2006
    • 0 Attachment
      On Tue, 2006-01-31 at 18:55 -0800, Gerald Lai wrote:
      > On Wed, 1 Feb 2006, 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.
      >
      > Place in vimrc:
      >
      > if !has("gui_running")
      > set bg=dark
      > endif
      >
      Thanks, that works fine :-)
    • Show all 6 messages in this topic