From: Christoph Haas, Sun, 26 Oct 2003 12:10:22 +0100
> On Sat, Oct 25, 2003 at 10:46:49PM -0400, Steve Hall wrote:
> > On Sat, 2003-10-25 at 20:28, Christoph Haas wrote:
> > >
> > > When starting Cream I get an error message for a second:
> > > ======
> > > Error detected while processing function
> > > Cream_print_init..Cream_print_setup: line 14:
> > Please verify that the two functions Cream_print_setup() and
> > Cream_print_init() in cream-lib.vim match those at the bottom.
> No, the cream-lib.vim looks different. I took the 0.24 version from
> cream.sf.net - isn't that the official release of 0.24? Or is this a
> known bug which is fixed in the CVS version?
Oh dear, really stupid mistake on my part. The tarball didn't reflect
these changes while the .zip did. I must have tweaked it on the
Windows side after making the .tar.gz package first.
> You know for a Debian package a package maintainer usually takes an
> official release from the upstream developer(s) and makes a package
> of it. So I would rather not like to use the CVS to make sure both
> you and me know what's supposed to be in the files.
Yes, this is the correct way to do it, and also the easiest.
I hope to release 0.25 shortly which will have this corrected in an
official release. (Along with a few other minor updates.)
> > > Bug 2)
> > > When doing a central installation (I set the CREAM* variables
> > > and start it vom /usr/share/vim/cream) there is a problem with
> > > the spell checking. According to the cream-spell.vim the
> > > "spelldicts" directory needs to be user writeable. Making a
> > > system directory user writeable is not a good idea so perhaps
> > > changing this check to "if directory exists" instead of "is it
> > > writeable" might be better. Am I wrong?
> > Do you set $CREAM_USER to somewhere writable? We need some place
> > to write user additions to the dictionaries and this var allows
> > each user to have his own.
> Valid hint. No, I didn't set the variable yet. I just tried so set
> it to $HOME but that also didn't solve it. The exact error message
> is "Warning, default dictionary not found." as written in the
> "function! Cream_spell_dictload_default()" in the cream-spell.vim.
> Perhaps someone has an idea what's wrong here?
Cream_spell_init() is using a bad test to find the dictionary
locations for a system-wide installation. Substitute
if isdirectory($CREAM . "spelldicts") == 1
for the line
if filewritable($CREAM . "spelldicts") == 2
at the last if statement in the function. This will allow the
default spell check directory to be non-writable.
But you'll still need a writable location for user directories. Note
that if $CREAM_USER exists, user dictionaries will be placed into a
subdirectory within, "spelldicts/".
> > I think it's terrific that you're doing this! But I'm not sure how
> > to find the source of your package from the link.
> Thanks - as long as I can complain about potential bugs and still
> get support from you I'm happy enough to do it. :)
Well, I'm not dead yet, so keep it up!
> The mentors.debian.net is a source/repository of Debian packages
> that are not yet officially in the distribution. Sponsors (the
> developers that upload packages on behalf of non-Debian-developers
> (like me)) take the package from there and upload it. That's why I
> pointed you to that web site.
> The direct link to the directory the package files can be found at
> Debian users only need to get the ".deb" file and install it using
> -i ...deb".
Found the tarball, but couldn't find your wrapper below...
> > Just curious how you enable a global installation while at the
> > same time keep standard Vim available, too. (I hope to begin
> > providing a "cream" startup batch/script in a release or two that
> > preserves "g/vim" as default Vim without Cream, as detailed in
> > http://cream.sf.net/faq.html#0202.)
> I felt a little inventive and produced these lines as a startup
> wrapper in /usr/bin/cream. This way I can pass through all other VIM
> options while running the vimrc from cream first. It looks like
> # This wrapper script is part of the "vim-cream" Debian GNU/Linux
> # package written by Christoph Haas <email@...>.
> VIMINIT="source /usr/share/vim/cream/.vimrc"
> export VIMINIT
> export CREAM
> export CREAM_BAK
> export CREAM_SWP
> export CREAM_VIEW
> exec gvim "$@"
Ouch, this will dump tons of backup, swap, view, and viminfo files
into the user's home directory. Please create a hidden user location
for the last three--GNOME (and now KDE?) use $HOME as the desktop!
Default for Cream is ~/.cream-user, but any location would do, even
And for my own education, perhaps you can teach me a few things:
o Does the "$@" argument to the last exec line mean "all arguments"?
o Why "exec gvim" rather than just "gvim"?
o Why not simply write:
Complete novice here, go easy on me!
Thanks again for all your work and input.
Steve Hall [ digitect@... ]
Cream... sheep clothing for the Vim text editor!