On Sun, Apr 20, 2008 at 6:15 PM, Aitor Pérez Iturri
<[EMAIL PROTECTED]> wrote:
> Hi all,
>
>  I'm planning to create some recipes for vim addons (scripts and so on),
>  but i don't like the idea of have them installed in system paths because
>  vim scripts are intended to be installed under the user home directory.
>  I have an idea of how we could keep that recipes, i implemented here and
>  works, this is how it works (i think something similar is being done
>  under debian for vim addons):
>
>  * Creating recipes that install the contents of the vim addon as usual
>  under /Programs/Vim-Script/Version/vimfiles
>  * Then i created a little script [1] (in bash using the gobo functions) that
>  can install/uninstall scripts in the user home, example:
>
>         VimAddonManager Vim-AutoFold <- installs the addon under $HOME/.vim
>         VimAddonManager -u Vim-AutoFold <- uninstall the addon
>         VimAddonManager -d /tmp/test Vim-AutoFold <- installs the addon
>                 under /tmp/test
>
>  That bash script could come with the vim recipe so users could safely
>  activate addons with a simple command.
>
>  I was thinking to give support in the bash script to enable and disable
>  some of the addons that come with Vim (official ones).
>
>  What do you think about this?

We never ran into a situation like this before, so there is no exact
precedent on how to behave, but it's nice that you did the research on
how other distros are doing it. (Would be nice to see also how things
go in this regard in Gentoo and Rpm-land, but I suppose it's a similar
approach.)

>  [1] http://pastebin.com/m752ac953

Some suggestions for the script:

* 3 spaces for indentation, not tabs
* Grammar fixes: "Could not find", "Directory doesn't exist"
* Make arguments case-insensitive using GuessProgramCase (see
SymlinkProgram for an example)
* Assume that all Vim addons will be called "Vim-*" (like we do in
Perl module recipes), so that a user can write "VimAddonManager
autofold"

And a feature suggestion:
* Perhaps an attempt to install an addon that's not installed in
/Programs could trigger an attempt to InstallPackage or Compile it, or
at least give instructions (something like "The 'autofold' addon is
not available in this computer. You can attempt installing it using
'InstallPackage vim-autofold' or 'Compile vim-autofold'").

-- Hisham
_______________________________________________
gobolinux-devel mailing list
gobolinux-devel@lists.gobolinux.org
http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel

Reply via email to