From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id KKUxEGA6mmOkmQAAbAwnHQ (envelope-from ) for ; Wed, 14 Dec 2022 22:04:32 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id IP9ED2A6mmPPKAAAG6o9tA (envelope-from ) for ; Wed, 14 Dec 2022 22:04:32 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0EC019308 for ; Wed, 14 Dec 2022 22:04:32 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5Yv7-0001Es-5I; Wed, 14 Dec 2022 16:04:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5Yv5-0001ET-8o for guix-patches@gnu.org; Wed, 14 Dec 2022 16:04:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p5Yv4-00009M-UC for guix-patches@gnu.org; Wed, 14 Dec 2022 16:04:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p5Yv4-0006j3-II for guix-patches@gnu.org; Wed, 14 Dec 2022 16:04:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60029] [PATCH v2 2/4] gnu: vim: add relevant locations to 'package-path' instead of 'runtime-path' Resent-From: Jonathan Scoresby Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 14 Dec 2022 21:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60029 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60029@debbugs.gnu.org Cc: Jonathan Scoresby Received: via spool by 60029-submit@debbugs.gnu.org id=B60029.167105181525812 (code B ref 60029); Wed, 14 Dec 2022 21:04:02 +0000 Received: (at 60029) by debbugs.gnu.org; 14 Dec 2022 21:03:35 +0000 Received: from localhost ([127.0.0.1]:41842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5Yud-0006iG-1i for submit@debbugs.gnu.org; Wed, 14 Dec 2022 16:03:35 -0500 Received: from mout-p-201.mailbox.org ([80.241.56.171]:44070) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5Yub-0006i8-AU for 60029@debbugs.gnu.org; Wed, 14 Dec 2022 16:03:33 -0500 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4NXSWb2qPyz9sQq; Wed, 14 Dec 2022 22:03:23 +0100 (CET) From: Jonathan Scoresby Date: Wed, 14 Dec 2022 14:02:01 -0700 Message-Id: In-Reply-To: <57f2e77fc975bf00d1222729b0e41aef5c8a00a0.1671051720.git.me@jonscoresby.com> References: <57f2e77fc975bf00d1222729b0e41aef5c8a00a0.1671051720.git.me@jonscoresby.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4NXSWb2qPyz9sQq X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671051872; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=FU3pTNjs3rFhOZ27/vCUP/14nG81y6EC2Vdya2u6C08=; b=BBBbZ8ap6DexmY3U5XXU/KULMHIXi1irSSv2IwICAxaerBpL79IK8AYjGECp7yGgW0CBFf hm4c6Re074JoT5+cXT31xPdr7gQacaowJc0oj18SoYPIo6FSqEMYYlpicKKkLs8cVwHlHf Hh2upeaIxsO0PKbKpAI/Y6+sg6K3eWyMHcCbMt45ET0crvrIO7q/JsVhh3JVeRK82CzZ+0 SRXhEro4mJFca67KkqL9LfldsAhWCjKiV2rEoYeUZywpY20vM6aq9IqsaNQV48oqdfAYsY q7NUEo9yyZ6zli2rnjYnWfjlCZ4tBLzKy/aLlT5wRLMtgD+6n2wcayuqgzE43Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1671051872; a=rsa-sha256; cv=none; b=tcT50NCiUGbdE3Uro9uGJZeV8fKfYG7Hnri/M/Udt10Td8pyTHwx161041WZtMZyGWdc+t jPPxAXNTGK3AFEXEvTAbIuc6dL8VzFBHYdfd65OyNrpmP2wLQ2gWtDU0ZZ7wwJaglLx2uk 9MqEYDYJfe0OWNUTjZmfyN3R+13cHsKWE/XUnF4xrF8+gYT56+VigKmWzeMCh1OSBmGQSe 4FXg7rFTEvdIBi69fDmTKd0ruyBAxtGOfxz/24n0Jo7gk9A2xrhR4Az3A9KhUpnngisDSu zvfbKL/uKq4uXvstwCvDhA4d5JRN1ePZn6GKTOK+A7lq39WOH7scRAwCD9ep4w== X-Migadu-Spam-Score: -2.37 X-Spam-Score: -2.37 X-Migadu-Queue-Id: 0EC019308 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none X-TUID: 7LpdnrGNqN50 This is neccesary because vim's built-in plugin manager looks for directories under 'package-path' instead of 'runtime-path.' Once we have told vim the package-path, it adds all the packages to the runtime-path automatically for us. --- gnu/packages/aux-files/guix.vim | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/gnu/packages/aux-files/guix.vim b/gnu/packages/aux-files/guix.vim index 9397c53701..7e7f8d653a 100644 --- a/gnu/packages/aux-files/guix.vim +++ b/gnu/packages/aux-files/guix.vim @@ -1,13 +1,7 @@ -" This appends all of the vim plugins to the end of Vim's runtimepath. +" This apends all applicable vim paths to the end of packagepath for directory in ["/run/current-system/profile", $HOME . "/.guix-profile", $HOME ."/.guix-home/profile", $GUIX_PROFILE, $GUIX_ENVIRONMENT] let vimplugins = directory . "/share/vim/vimfiles" if isdirectory(vimplugins) - let &rtp = join([&rtp,vimplugins], ',') + let &pp = join([&pp,vimplugins], ',') endif endfor -" Unconditionally add */after directories last, as intended by upstream -" TODO: Remove duplicate */after directories -for directory in [$VIM . "/vimfiles", $HOME ."/.vim"] - let vimplugins = directory . "/after" - let &rtp = join([&rtp,vimplugins], ',') -endfor -- 2.38.1