[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#60029] [PATCH v3 1/3] gnu: vim: Add vim packages to 'package-path'
From: |
Efraim Flashner |
Subject: |
[bug#60029] [PATCH v3 1/3] gnu: vim: Add vim packages to 'package-path' instead of 'runtime-path'. |
Date: |
Mon, 16 Oct 2023 12:15:11 +0300 |
From: Jonathan Scoresby <me@jonscoresby.com>
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: Add paths to packagepath instead of
runtimepath. Remove code to adjust runtimepath after adding paths.
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
gnu/packages/aux-files/guix.vim | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/aux-files/guix.vim b/gnu/packages/aux-files/guix.vim
index 9397c53701..24a6b941a8 100644
--- a/gnu/packages/aux-files/guix.vim
+++ b/gnu/packages/aux-files/guix.vim
@@ -1,13 +1,8 @@
-" This appends all of the vim plugins to the end of Vim's runtimepath.
+" This appends all applicable vim paths to the end of packagepath. Once we
+" have told vim the packagepath vim will add it to the runtimepath for us.
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
--
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