[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#43539] [PATCH] gnu: vim: Automatically find vim plugins.
From: |
Efraim Flashner |
Subject: |
[bug#43539] [PATCH] gnu: vim: Automatically find vim plugins. |
Date: |
Sun, 20 Sep 2020 23:57:58 +0300 |
On Sun, Sep 20, 2020 at 09:50:12PM +0200, Ricardo Wurmus wrote:
>
> Efraim Flashner <efraim@flashner.co.il> writes:
>
> > On Sun, Sep 20, 2020 at 09:29:27PM +0200, Ricardo Wurmus wrote:
> >>
> >> Efraim Flashner <efraim@flashner.co.il> writes:
> >>
> >> > diff --git a/gnu/packages/aux-files/guix.vim
> >> > b/gnu/packages/aux-files/guix.vim
> >> > new file mode 100644
> >> > index 0000000000..ca97f451d8
> >> > --- /dev/null
> >> > +++ b/gnu/packages/aux-files/guix.vim
> >> > @@ -0,0 +1,7 @@
> >> > +" This appends all of the vim plugins to the end of Vim's runtimepath.
> >> > +for directory in ["/run/current-system/profile", $HOME .
> >> > "/.guix-profile", $GUIX_ENVIRONMENT]
> >>
> >> How about using $GUIX_PROFILE as well or instead of $HOME/.guix-profile?
> >> This would allow users to keep a separate profile for Vim things.
> >
> > That was the one part I didn't really like about my patch. Unfortunately
> > I don't seem to have $GUIX_PROFILE set on my machine.
> >
> > (ins)efraim@E5400 ~$ echo $GUIX_PROFILE
> >
> > (ins)efraim@E5400 ~$
>
> Me neither! But when loading profiles we suggest this approach:
>
> export GUIX_PROFILE=/the/location/of/the/.guix-profile
> source $GUIX_PROFILE/etc/profile
>
> The variable is set in that case, because that affects whether absolute
> store file names are used or the symlink
> “/the/location/of/the/.guix-profile”.
It seems to be the case for the default profile. And in Guix System. I
could also just add $GUIX_PROFILE as another location in the list of
directories to search.
--
Efraim Flashner <efraim@flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
signature.asc
Description: PGP signature
- [bug#43539] [PATCH] gnu: vim: Automatically find vim plugins., Efraim Flashner, 2020/09/20
- [bug#43539] [PATCH] gnu: vim: Automatically find vim plugins., Ricardo Wurmus, 2020/09/20
- [bug#43539] [PATCH] gnu: vim: Automatically find vim plugins., Efraim Flashner, 2020/09/20
- [bug#43539] [PATCH] gnu: vim: Automatically find vim plugins., Ricardo Wurmus, 2020/09/20
- [bug#43539] [PATCH] gnu: vim: Automatically find vim plugins.,
Efraim Flashner <=
- [bug#43539] [PATCH] gnu: vim: Automatically find vim plugins., Efraim Flashner, 2020/09/22
- [bug#43539] [PATCH] gnu: vim: Automatically find vim plugins., Marius Bakke, 2020/09/25
- [bug#43539] [PATCH] gnu: vim: Automatically find vim plugins., Efraim Flashner, 2020/09/27
- [bug#43539] [PATCH] gnu: vim: Automatically find vim plugins., Efraim Flashner, 2020/09/27