Re: FAQ clarification: multiple user installation?
Cream is a free, easy-to-use configuration of the Vim text editor
Brought to you by:
digitect
From: Steve H. <dig...@mi...> - 2004-05-14 21:35:05
|
From: Christoph Haas, May 14, 2004 4:45 PM > On Fri, May 14, 2004 at 11:12:00AM -0400, Steve Hall wrote: > > > > Hmm... I guess we don't really have a system user config file. > > cream-user currently will be loaded at $CREAM, but only if a $HOME > > location isn't found. See Cream_load_user() at the top of > > cream-lib.) > > > > I suppose loading a system $CREAM/cream-user *in addition to* the > > user file would mimick Vim's method of loading a system vimrc and > > a user vimrc. > > > > Anybody have any ideas about this? > > I don't know if this is for you. But in my Debian package I handle > the central installation this way: > > a.) The creamrc file is put into /usr/share/vim/cream/vimrc. > b.) When starting cream (I have written a wrapper script) I set > VIMINIT="source /usr/share/vim/cream/creamrc" > export VIMINIT > c.) I create $HOME/.cream-user/views and $HOME/.cream-user/spelldicts > d.) Then I run vim, gvim or kvim... Christoph, I hope you find Cream 0.29 makes all this obsolete and much simpler. All you have to do now is: gvim -U NONE -u "\$VIMRUNTIME/cream/creamrc" "$@" a.) => can really be anywhere, named anything b.) => external variable is no longer necessary c.) => all user directories are now verified and created automatically (well, except Elias' bug, now fixed in CVS. :) d.) => if you drop this line into an executable "cream" on path, the user can run both Vim and Vim/Cream at the same time! > You could try to check if another creamrc exists for the user and > also 'source' it in VIMINIT=... I'm not sure whether this is what > you want. I think the first is a good option and it's only a few more lines of script. > Just my $0.02. Thanks for the feedback. -- Steve Hall [ dig...@mi... ] Cream... the Vim text editor in sheep's clothing! http://cream.sourceforge.net |