You are not logged in.

#1 2006-04-06 01:40:02

riwa
Member
From: Lund, Sweden
Registered: 2006-04-04
Posts: 215

Help with bash function(set background=dark/light in vimrc)

I couldn't find any gvimrc files so I guess it uses the regular one. And since I work pretty much in X too  I thought it would be nice with a function that sets background=light if I'm in X an background=dark if not. Is that possible?

/Richard


If you must have must. Have must.
- DKE supporters about this wonderful swedish soda.

Offline

#2 2006-04-06 23:37:41

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Help with bash function(set background=dark/light in vimrc)

vimrc configuration is not the same as bash.

You probably want something like this in your ~/.vimrc:

if has('gui_running')
   set background=light
else
   set background = dark
endif

Offline

Board footer

Powered by FluxBB