vim7 spell checking & dictionaries available in Debian

Stefano Zacchiroli zack at debian.org
Wed Mar 29 21:18:45 UTC 2006


On Tue, Mar 28, 2006 at 01:18:37PM -0500, Stefano Zacchiroli wrote:
> 3) A third way may be to hook into vim's code. Right now, when a
> dictionary is not available an attempt to download it from the network
> is made (storing it in user's home I suppose). We can hook there and
> invoke mkvimspell.sh with some setgid magic so that once generated the
> spell file is available for all system users instead of for only the
> user who generated it.

After talking with Bram I'm more convinced about this road. The idea is
to hook into spellfile.vim (the plugin which offers to download a
dictionary from the web if not available) so that:
1) an additional possibility to generate a Vim spell file from installed
   myspell-* packages is offered
2) after the Vim spell file has been found (no matter if from the web or
   from (1)), it is installed under /var/cache/vim/spell/ using a setgid
   installer. Of course /var/cache/vim/ will be added as a dir in Vim's
   runtime path.

The script to implement (1) can be the mkvimspell.sh I committed, or
something similar.

I'm writing the small (C code) setgid installer for (2).

Note that (2) will also require a unix group that has the permission to
modify stuff under /var/cache/vim/ (let's call it "vim"). It can seem a
bit overkilling but once we have such a group we can reuse it in the
future, for examples for documentation which can be lazily generated out
of system-wide Vim plugins.

What do you think?

-- 
Stefano Zacchiroli -*- Computer Science PhD student @ Uny Bologna, Italy
zack@{cs.unibo.it,debian.org,bononia.it} -%- http://www.bononia.it/zack/
If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. -!-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20060329/71277ea8/attachment.pgp


More information about the pkg-vim-maintainers mailing list