Re: vim/gvim distinction in .vimrc
- Lasse Pommerenke wrote:
>> way to tell vim to use bg=dark only for vim but not for gvim, propablygvim reads both. You should still bracket it by "if !has('gui_running')"
>> in my .vimrc.
> vim reads .vimrc; and gvim will read .gvimrc
in your vimrc to make it not apply to the GUI.
- On Tue, 2006-01-31 at 18:55 -0800, Gerald Lai wrote:
> On Wed, 1 Feb 2006, Matthias Langer wrote:Thanks, that works fine :-)
> > 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