GNU bug report logs - #43539
[PATCH] gnu: vim: Automatically find vim plugins.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: Efraim Flashner <efraim@HIDDEN>; Keywords: patch; dated Sun, 20 Sep 2020 19:17:01 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 20 Sep 2020 19:33:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 20 15:33:07 2020
Received: from localhost ([127.0.0.1]:52712 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kK559-0007yT-Cp
	for submit <at> debbugs.gnu.org; Sun, 20 Sep 2020 15:33:07 -0400
Received: from lists.gnu.org ([209.51.188.17]:42646)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <efraim@HIDDEN>) id 1kK54w-0007xQ-78
 for submit <at> debbugs.gnu.org; Sun, 20 Sep 2020 15:33:06 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:38952)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <efraim@HIDDEN>)
 id 1kK54u-0006D3-Kk
 for guix-patches@HIDDEN; Sun, 20 Sep 2020 15:32:54 -0400
Received: from flashner.co.il ([178.62.234.194]:42072)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <efraim@HIDDEN>) id 1kK54s-0005g3-Qp
 for guix-patches@HIDDEN; Sun, 20 Sep 2020 15:32:52 -0400
Received: from localhost (unknown [31.210.181.177])
 by flashner.co.il (Postfix) with ESMTPSA id E84C940037;
 Sun, 20 Sep 2020 19:32:48 +0000 (UTC)
Date: Sun, 20 Sep 2020 22:32:15 +0300
From: Efraim Flashner <efraim@HIDDEN>
To: Ricardo Wurmus <rekado@HIDDEN>
Subject: Re: [bug#43539] [PATCH] gnu: vim: Automatically find vim plugins.
Message-ID: <20200920193215.GA6984@E5400>
References: <20200920191523.6871-1-efraim@HIDDEN>
 <87bli0tffs.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
 protocol="application/pgp-signature"; boundary="AqsLC8rIMeq19msA"
Content-Disposition: inline
In-Reply-To: <87bli0tffs.fsf@HIDDEN>
X-PGP-Key-ID: 0x41AAE7DCCA3D8351
X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc
X-PGP-Fingerprint: A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Received-SPF: pass client-ip=178.62.234.194;
 envelope-from=efraim@HIDDEN; helo=flashner.co.il
X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/20 15:15:57
X-ACL-Warn: Detected OS   = ???
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: submit
Cc: guix-patches@HIDDEN, 43539 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)


--AqsLC8rIMeq19msA
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Sep 20, 2020 at 09:29:27PM +0200, Ricardo Wurmus wrote:
>=20
> Efraim Flashner <efraim@HIDDEN> writes:
>=20
> > diff --git a/gnu/packages/aux-files/guix.vim b/gnu/packages/aux-files/g=
uix.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-profi=
le", $GUIX_ENVIRONMENT]
>=20
> 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 ~$

--=20
Efraim Flashner   <efraim@HIDDEN>   =D7=90=D7=A4=D7=A8=D7=99=D7=9D =
=D7=A4=D7=9C=D7=A9=D7=A0=D7=A8
GPG key =3D A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

--AqsLC8rIMeq19msA
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl9nrjwACgkQQarn3Mo9
g1G4ARAAo1ALsWRisnX5ItiqH/udKHRe0JWWfR/GyS1PmjkIP3JZtc+hSld4yggG
HJaQsK8nXBUmCbjoEe5Bxs7q52nmU3Edr2jQo0nazQuP+bV7Wc5dZxH4GUt7g1By
XuR0qjKqdZsxKRU3T5JH/AHj5N8RFhjuzzLquuAWjKwXM44FEgZcNI0JRUoh+zHF
zc+OezkjrLpUFWH/Ahy41oB3SgTYjWd5mmOB0wDdT5nbzG+92Zx/jTN5e8BimgI4
8YOa9Xr6ngVsgIuHIhaUbvLBJ2Dejh0H3IyW18wgK4aox3MAMImqcLWcGtKzLnwS
tNPljE8tEChlVbvq+FmU/vrJjoqXaDaFRFKjZ5k1aA8ETTQUUq8e3HXJOLV+5YGq
qPm+HuDylNCzHoNRpjr8qx8bVAB4JIR0ytcSIyp/4KknFgn85Hnzbs/HnFFUpect
82x0hMBzZj1EmW2/7O6Fj1TazSYujpMY/oz/5UIhhPENCuMGCWSbk/SMJ9ZkBW2r
+S8JkSAGK4RSXjvdSCS0pis02U7Ru4AoXjwPKlzqTC459mO91rAZHQPpovH442a8
Hk8D64JPSh2/LCJ07sxwruK1GzlQ0CSWh6QrC7PYYMwnD9VvOFeMbn6q35jqFJ1q
6gskw+/5+w26OZy6SURamP/ZJIc/V4i4WWhZ2zVem+XEJjjDPNk=
=pijM
-----END PGP SIGNATURE-----

--AqsLC8rIMeq19msA--




Information forwarded to guix-patches@HIDDEN:
bug#43539; Package guix-patches. Full text available.

Message received at 43539 <at> debbugs.gnu.org:


Received: (at 43539) by debbugs.gnu.org; 20 Sep 2020 19:32:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 20 15:32:56 2020
Received: from localhost ([127.0.0.1]:52709 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kK54y-0007xY-5V
	for submit <at> debbugs.gnu.org; Sun, 20 Sep 2020 15:32:56 -0400
Received: from flashner.co.il ([178.62.234.194]:43258)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <efraim@HIDDEN>) id 1kK54w-0007xK-Tk
 for 43539 <at> debbugs.gnu.org; Sun, 20 Sep 2020 15:32:55 -0400
Received: from localhost (unknown [31.210.181.177])
 by flashner.co.il (Postfix) with ESMTPSA id E84C940037;
 Sun, 20 Sep 2020 19:32:48 +0000 (UTC)
Date: Sun, 20 Sep 2020 22:32:15 +0300
From: Efraim Flashner <efraim@HIDDEN>
To: Ricardo Wurmus <rekado@HIDDEN>
Subject: Re: [bug#43539] [PATCH] gnu: vim: Automatically find vim plugins.
Message-ID: <20200920193215.GA6984@E5400>
References: <20200920191523.6871-1-efraim@HIDDEN>
 <87bli0tffs.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
 protocol="application/pgp-signature"; boundary="AqsLC8rIMeq19msA"
Content-Disposition: inline
In-Reply-To: <87bli0tffs.fsf@HIDDEN>
X-PGP-Key-ID: 0x41AAE7DCCA3D8351
X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc
X-PGP-Fingerprint: A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 43539
Cc: guix-patches@HIDDEN, 43539 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


--AqsLC8rIMeq19msA
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Sep 20, 2020 at 09:29:27PM +0200, Ricardo Wurmus wrote:
>=20
> Efraim Flashner <efraim@HIDDEN> writes:
>=20
> > diff --git a/gnu/packages/aux-files/guix.vim b/gnu/packages/aux-files/g=
uix.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-profi=
le", $GUIX_ENVIRONMENT]
>=20
> 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 ~$

--=20
Efraim Flashner   <efraim@HIDDEN>   =D7=90=D7=A4=D7=A8=D7=99=D7=9D =
=D7=A4=D7=9C=D7=A9=D7=A0=D7=A8
GPG key =3D A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

--AqsLC8rIMeq19msA
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl9nrjwACgkQQarn3Mo9
g1G4ARAAo1ALsWRisnX5ItiqH/udKHRe0JWWfR/GyS1PmjkIP3JZtc+hSld4yggG
HJaQsK8nXBUmCbjoEe5Bxs7q52nmU3Edr2jQo0nazQuP+bV7Wc5dZxH4GUt7g1By
XuR0qjKqdZsxKRU3T5JH/AHj5N8RFhjuzzLquuAWjKwXM44FEgZcNI0JRUoh+zHF
zc+OezkjrLpUFWH/Ahy41oB3SgTYjWd5mmOB0wDdT5nbzG+92Zx/jTN5e8BimgI4
8YOa9Xr6ngVsgIuHIhaUbvLBJ2Dejh0H3IyW18wgK4aox3MAMImqcLWcGtKzLnwS
tNPljE8tEChlVbvq+FmU/vrJjoqXaDaFRFKjZ5k1aA8ETTQUUq8e3HXJOLV+5YGq
qPm+HuDylNCzHoNRpjr8qx8bVAB4JIR0ytcSIyp/4KknFgn85Hnzbs/HnFFUpect
82x0hMBzZj1EmW2/7O6Fj1TazSYujpMY/oz/5UIhhPENCuMGCWSbk/SMJ9ZkBW2r
+S8JkSAGK4RSXjvdSCS0pis02U7Ru4AoXjwPKlzqTC459mO91rAZHQPpovH442a8
Hk8D64JPSh2/LCJ07sxwruK1GzlQ0CSWh6QrC7PYYMwnD9VvOFeMbn6q35jqFJ1q
6gskw+/5+w26OZy6SURamP/ZJIc/V4i4WWhZ2zVem+XEJjjDPNk=
=pijM
-----END PGP SIGNATURE-----

--AqsLC8rIMeq19msA--




Information forwarded to guix-patches@HIDDEN:
bug#43539; Package guix-patches. Full text available.

Message received at 43539 <at> debbugs.gnu.org:


Received: (at 43539) by debbugs.gnu.org; 20 Sep 2020 19:28:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 20 15:28:15 2020
Received: from localhost ([127.0.0.1]:52684 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kK50R-0005f5-17
	for submit <at> debbugs.gnu.org; Sun, 20 Sep 2020 15:28:15 -0400
Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21115)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rekado@HIDDEN>) id 1kK50P-0005eq-J8
 for 43539 <at> debbugs.gnu.org; Sun, 20 Sep 2020 15:28:13 -0400
ARC-Seal: i=1; a=rsa-sha256; t=1600630087; cv=none; 
 d=zohomail.com; s=zohoarc; 
 b=fK1BAC2cfS7wqpDgsDiuO/RaUE8QhjZ01BMzTAKSv6i6MrKTfWHbuJRMn94rmCYhDD8/TJsrwkHdUsZerKgHFGFYiH3J+zqy7cIB/QZlu4fzXk2Yp+s705QP0xutP9kLjJ2/rI7LwWPZR2CzRvWGP/wd3IF7oBgfDiNnug0gE0Q=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com;
 s=zohoarc; t=1600630087;
 h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To;
 bh=H4LVjSPPZUR7SyvcYW3Y4pExjPk8CUZ+33KXxtCc0wE=; 
 b=bkerxLyaG7Slwys0ZQMhJ1hqGjO2U1tWh9sqL01/MtZfHtd562x4eJAo0CVEJueZtLsfYfMv22wwNOUg59glu8VuZkzRHwYeOzoT+2k99inkIP0kkZkoqMN24R3Cyv9v/pCnHI1BUPthl266SgZUg7kbtPJKBSbVci+Wdl1eDTM=
ARC-Authentication-Results: i=1; mx.zohomail.com;
 dkim=pass  header.i=elephly.net;
 spf=pass  smtp.mailfrom=rekado@HIDDEN;
 dmarc=pass header.from=<rekado@HIDDEN> header.from=<rekado@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1600630087; 
 s=zoho; d=elephly.net; i=rekado@HIDDEN;
 h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type;
 bh=H4LVjSPPZUR7SyvcYW3Y4pExjPk8CUZ+33KXxtCc0wE=;
 b=H1Zx8gZDrcsBKRiI7HybjwFCCPe60WxZvrVMTthYsxsrz+QIssUkLcBEsCxDZKjy
 Hhx1YlSdl65WgNFMA2ihJmlNea+/EiD6iJiTRcZmTZ+pj9niEzoZk5KLnnsHFnzCT/O
 6rZScB7b2GB8Uji34k/ieu5GIgaoo505I283br2Y=
Received: from localhost (p54ad419e.dip0.t-ipconnect.de [84.173.65.158]) by
 mx.zohomail.com with SMTPS id 1600630085096470.86193306549194;
 Sun, 20 Sep 2020 12:28:05 -0700 (PDT)
References: <20200920191523.6871-1-efraim@HIDDEN>
User-agent: mu4e 1.4.13; emacs 27.1
From: Ricardo Wurmus <rekado@HIDDEN>
To: Efraim Flashner <efraim@HIDDEN>
Subject: Re: [bug#43539] [PATCH] gnu: vim: Automatically find vim plugins.
In-reply-to: <20200920191523.6871-1-efraim@HIDDEN>
X-URL: https://elephly.net
X-PGP-Key: https://elephly.net/rekado.pubkey
X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
Date: Sun, 20 Sep 2020 21:29:27 +0200
Message-ID: <87bli0tffs.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-ZohoMailClient: External
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 43539
Cc: guix-patches@HIDDEN, 43539 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


Efraim Flashner <efraim@HIDDEN> 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.

-- 
Ricardo




Information forwarded to guix-patches@HIDDEN:
bug#43539; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 20 Sep 2020 19:28:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 20 15:28:15 2020
Received: from localhost ([127.0.0.1]:52682 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kK50Q-0005f2-P1
	for submit <at> debbugs.gnu.org; Sun, 20 Sep 2020 15:28:14 -0400
Received: from lists.gnu.org ([209.51.188.17]:37646)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rekado@HIDDEN>) id 1kK50O-0005eo-W7
 for submit <at> debbugs.gnu.org; Sun, 20 Sep 2020 15:28:13 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:37762)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <rekado@HIDDEN>)
 id 1kK50O-0003ok-Nr
 for guix-patches@HIDDEN; Sun, 20 Sep 2020 15:28:12 -0400
Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21112)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <rekado@HIDDEN>)
 id 1kK50M-0004v3-Lo
 for guix-patches@HIDDEN; Sun, 20 Sep 2020 15:28:12 -0400
ARC-Seal: i=1; a=rsa-sha256; t=1600630087; cv=none; 
 d=zohomail.com; s=zohoarc; 
 b=fK1BAC2cfS7wqpDgsDiuO/RaUE8QhjZ01BMzTAKSv6i6MrKTfWHbuJRMn94rmCYhDD8/TJsrwkHdUsZerKgHFGFYiH3J+zqy7cIB/QZlu4fzXk2Yp+s705QP0xutP9kLjJ2/rI7LwWPZR2CzRvWGP/wd3IF7oBgfDiNnug0gE0Q=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com;
 s=zohoarc; t=1600630087;
 h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To;
 bh=H4LVjSPPZUR7SyvcYW3Y4pExjPk8CUZ+33KXxtCc0wE=; 
 b=bkerxLyaG7Slwys0ZQMhJ1hqGjO2U1tWh9sqL01/MtZfHtd562x4eJAo0CVEJueZtLsfYfMv22wwNOUg59glu8VuZkzRHwYeOzoT+2k99inkIP0kkZkoqMN24R3Cyv9v/pCnHI1BUPthl266SgZUg7kbtPJKBSbVci+Wdl1eDTM=
ARC-Authentication-Results: i=1; mx.zohomail.com;
 dkim=pass  header.i=elephly.net;
 spf=pass  smtp.mailfrom=rekado@HIDDEN;
 dmarc=pass header.from=<rekado@HIDDEN> header.from=<rekado@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1600630087; 
 s=zoho; d=elephly.net; i=rekado@HIDDEN;
 h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type;
 bh=H4LVjSPPZUR7SyvcYW3Y4pExjPk8CUZ+33KXxtCc0wE=;
 b=H1Zx8gZDrcsBKRiI7HybjwFCCPe60WxZvrVMTthYsxsrz+QIssUkLcBEsCxDZKjy
 Hhx1YlSdl65WgNFMA2ihJmlNea+/EiD6iJiTRcZmTZ+pj9niEzoZk5KLnnsHFnzCT/O
 6rZScB7b2GB8Uji34k/ieu5GIgaoo505I283br2Y=
Received: from localhost (p54ad419e.dip0.t-ipconnect.de [84.173.65.158]) by
 mx.zohomail.com with SMTPS id 1600630085096470.86193306549194;
 Sun, 20 Sep 2020 12:28:05 -0700 (PDT)
References: <20200920191523.6871-1-efraim@HIDDEN>
User-agent: mu4e 1.4.13; emacs 27.1
From: Ricardo Wurmus <rekado@HIDDEN>
To: Efraim Flashner <efraim@HIDDEN>
Subject: Re: [bug#43539] [PATCH] gnu: vim: Automatically find vim plugins.
In-reply-to: <20200920191523.6871-1-efraim@HIDDEN>
X-URL: https://elephly.net
X-PGP-Key: https://elephly.net/rekado.pubkey
X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
Date: Sun, 20 Sep 2020 21:29:27 +0200
Message-ID: <87bli0tffs.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-ZohoMailClient: External
Received-SPF: pass client-ip=136.143.188.51; envelope-from=rekado@HIDDEN;
 helo=sender4-of-o51.zoho.com
X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/20 15:28:08
X-ACL-Warn: Detected OS   = Linux 3.11 and newer [fuzzy]
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
Cc: guix-patches@HIDDEN, 43539 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)


Efraim Flashner <efraim@HIDDEN> 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.

-- 
Ricardo




Information forwarded to guix-patches@HIDDEN:
bug#43539; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 20 Sep 2020 19:16:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 20 15:16:35 2020
Received: from localhost ([127.0.0.1]:52661 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kK4p8-0005Ma-Qr
	for submit <at> debbugs.gnu.org; Sun, 20 Sep 2020 15:16:35 -0400
Received: from lists.gnu.org ([209.51.188.17]:55488)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <efraim@HIDDEN>) id 1kK4p6-0005MR-Lq
 for submit <at> debbugs.gnu.org; Sun, 20 Sep 2020 15:16:33 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:35708)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <efraim@HIDDEN>)
 id 1kK4p6-0007F0-Fa
 for guix-patches@HIDDEN; Sun, 20 Sep 2020 15:16:32 -0400
Received: from flashner.co.il ([178.62.234.194]:42004)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <efraim@HIDDEN>) id 1kK4p4-0003e1-Gv
 for guix-patches@HIDDEN; Sun, 20 Sep 2020 15:16:32 -0400
Received: from localhost (unknown [31.210.181.177])
 by flashner.co.il (Postfix) with ESMTPSA id 63719400B1;
 Sun, 20 Sep 2020 19:15:57 +0000 (UTC)
From: Efraim Flashner <efraim@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH] gnu: vim: Automatically find vim plugins.
Date: Sun, 20 Sep 2020 22:15:23 +0300
Message-Id: <20200920191523.6871-1-efraim@HIDDEN>
X-Mailer: git-send-email 2.28.0
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=178.62.234.194;
 envelope-from=efraim@HIDDEN; helo=flashner.co.il
X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/20 15:15:57
X-ACL-Warn: Detected OS   = ???
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
Cc: Efraim Flashner <efraim@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

* gnu/packages/vim.scm (vim)[arguments]: Add new 'install-guix.vim phase
to install vendor specific vimrc.
* gnu/packages/aux-files/guix.vim: New file.
* Makefile.am (AUX_FILES): Register it.
---
 Makefile.am                     |  1 +
 gnu/packages/aux-files/guix.vim |  7 +++++++
 gnu/packages/vim.scm            | 10 +++++++++-
 3 files changed, 17 insertions(+), 1 deletion(-)
 create mode 100644 gnu/packages/aux-files/guix.vim

diff --git a/Makefile.am b/Makefile.am
index 8e91e1e558..d0867ecd22 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -332,6 +332,7 @@ dist_noinst_DATA =				\
 AUX_FILES =						\
   gnu/packages/aux-files/chromium/master-preferences.json		\
   gnu/packages/aux-files/emacs/guix-emacs.el		\
+  gnu/packages/aux-files/guix.vim			\
   gnu/packages/aux-files/linux-libre/5.8-arm.conf       \
   gnu/packages/aux-files/linux-libre/5.8-arm64.conf     \
   gnu/packages/aux-files/linux-libre/5.8-i686.conf      \
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]
+    let testpath = directory . "/share/vim/vimfiles"
+    if isdirectory(testpath)
+        let &rtp = join([&rtp,testpath], ',')
+    endif
+endfor
diff --git a/gnu/packages/vim.scm b/gnu/packages/vim.scm
index c6b1092e71..dba5b5a38e 100644
--- a/gnu/packages/vim.scm
+++ b/gnu/packages/vim.scm
@@ -136,7 +136,14 @@
              (substitute* "src/testdir/test_popupwin.vim"
                ((".*Test_popup_drag_termwin.*" line)
                 (string-append line "return\n")))
-             #t)))))
+             #t))
+         (add-after 'install 'install-guix.vim
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (let ((vimdir (string-append (assoc-ref outputs "out") "/share/vim")))
+               (mkdir-p vimdir)
+               (copy-file (assoc-ref inputs "guix.vim")
+                          (string-append vimdir "/vimrc"))
+               #t))))))
     (inputs
      `(("gawk" ,gawk)
        ("ncurses" ,ncurses)
@@ -144,6 +151,7 @@
        ("tcsh" ,tcsh)))                 ; For runtime/tools/vim32
     (native-inputs
      `(("libtool" ,libtool)
+       ("guix.vim" ,(search-auxiliary-file "guix.vim"))
 
        ;; For tests.
        ("tzdata" ,tzdata-for-tests)))
-- 
2.28.0





Acknowledgement sent to Efraim Flashner <efraim@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#43539; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 20 Sep 2020 19:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.