From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:38855) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iwLXX-0004ox-1d for guix-patches@gnu.org; Tue, 28 Jan 2020 02:44:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iwLXW-0005Ke-06 for guix-patches@gnu.org; Tue, 28 Jan 2020 02:44:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53427) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iwLXV-0005KV-Sl for guix-patches@gnu.org; Tue, 28 Jan 2020 02:44:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iwLXV-0005pd-QX for guix-patches@gnu.org; Tue, 28 Jan 2020 02:44:01 -0500 Subject: bug#39311: [PATCH] gnu: Add guix-vim. Resent-To: guix-patches@gnu.org Resent-Message-ID: Date: Tue, 28 Jan 2020 09:43:17 +0200 From: Efraim Flashner Message-ID: <20200128074317.GX1603@E5400> References: <20200127172032.25825-1-efraim@flashner.co.il> <87v9owttyz.fsf@elephly.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="dnBRaVjvtun1Q0Od" Content-Disposition: inline In-Reply-To: <87v9owttyz.fsf@elephly.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ricardo Wurmus Cc: 39311-done@debbugs.gnu.org --dnBRaVjvtun1Q0Od Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 27, 2020 at 11:28:20PM +0100, Ricardo Wurmus wrote: >=20 > Hi Efraim, >=20 > > * gnu/packages/vim.scm (guix-vim): New variable. > > --- > > gnu/packages/vim.scm | 42 ++++++++++++++++++++++++++++++++++++++++++ > > 1 file changed, 42 insertions(+) > > > > diff --git a/gnu/packages/vim.scm b/gnu/packages/vim.scm > > index b5952e3e21..a2d715dc1c 100644 > > --- a/gnu/packages/vim.scm > > +++ b/gnu/packages/vim.scm > > @@ -938,3 +938,45 @@ through its msgpack-rpc API.") > > =20 > > (define-public python2-pynvim > > (package-with-python2 python-pynvim)) > > + > > +(define-public guix-vim >=20 > Looks like we usually prefix vim extensions with =E2=80=9Cvim-=E2=80=9D, = so should this > be =E2=80=9Cvim-guix=E2=80=9D instead=E2=80=A6? Good call >=20 > > + (replace 'install > > + (lambda* (#:key outputs #:allow-other-keys) > > + (let* ((out (assoc-ref outputs "out")) > > + (vimfiles (string-append out "/share/vim/vimfiles"= )) > > + (compiler (string-append vimfiles "/compiler")) > > + (doc (string-append vimfiles "/doc")) > > + (indent (string-append vimfiles "/indent")) > > + (ftdetect (string-append vimfiles "/ftdetect")) > > + (ftplugin (string-append vimfiles "/ftplugin")) > > + (syntax (string-append vimfiles "/syntax"))) > > + (copy-recursively "compiler" compiler) > > + (copy-recursively "doc" doc) > > + (copy-recursively "indent" indent) > > + (copy-recursively "ftdetect" ftdetect) > > + (copy-recursively "ftplugin" ftplugin) > > + (copy-recursively "syntax" syntax) > > + #t)))))) >=20 > The repetition here tickles me a little. How about this instead=E2=80=A6? >=20 > (for-each (lambda (dir) > (copy-recursively dir (string-append vimfiles "/" dir))) > '("compiler" "doc" "indent" "ftdetect" "ftplugin" "syntax")) This will also be good if we ever get around to making a vim-build-system. --=20 Efraim Flashner =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 --dnBRaVjvtun1Q0Od Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl4v5hUACgkQQarn3Mo9 g1F1zA//d3wErRKUrme+bDP2EhkLlBSzJeZO33GEoQzEik5b8TtWRUnWHLwv7p74 3R14jrOjdqtMXFw9Evgm3sQzpta9Z3QFIHb3dPp/PAI5m59SRdcIYuiTNpeKWmY3 Jf519eA+9epCMSrea2BtI8OhpGuL8stCpD5j0JTsCgrbDh9Rg1gGPejx4NCjNZks 9Ms6ytjcDAcd8LyvIpOry9s6z/VsgGCUVzsSk1xI+UXHks7HimnNKDYLYLMp8oCN zCMdlc5/px3lxWYcx7audUqmfCtVmrkHm3F5w4cx0mj87ydXu9wXcg3g9oL0IMQ1 fnRe75ZcAKKfAl/SiiaXcejSo0w0FlDqBzRtzLyUUKUMUg+gZHg/7xSwHr+LA9ak 2cuHOwCgoKEukGA9MsOn58jhQ34BKG10oSjjpIG79F9IQsurZegjDDMH604ZO5Gu Mvs9fLAE2MG1ZgcZBet+AVW1T88pbeMHlGG98SGCnO0iEXikoR4JQwBwLFjlW8nq wqCYy7g4Z9hqxprx077s35r9loSyfd3BCjpygS226VR6MmlbDrvOiIaCoxn8G321 VqcTGbWZ5Bge75RPiEe6YH54YKuEyXMMmyvP7f67zJEmog4VSUXLLbRqcue8NdM7 c5RGXmcUhgkQ4EvrzyJqplwevXNDXTYICKQabAgsE/RKvwQ9QdM= =+bGl -----END PGP SIGNATURE----- --dnBRaVjvtun1Q0Od--