1
Fork 0
mirror of https://https.git.savannah.gnu.org/git/guix.git/ synced 2025-07-15 19:40:46 +02:00

gnu: vim: Automatically find vim plugins.

* 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.
This commit is contained in:
Efraim Flashner 2020-09-18 18:25:06 +03:00
parent caee6ec7c8
commit 53b51b44fd
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351
3 changed files with 17 additions and 1 deletions

View file

@ -145,7 +145,14 @@
;; Blindly fix some other differences based on error output.
(("^\\|!") "|<")
(("@37") "")))
#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)
@ -153,6 +160,7 @@
("tcsh" ,tcsh))) ; For runtime/tools/vim32
(native-inputs
`(("libtool" ,libtool)
("guix.vim" ,(search-auxiliary-file "guix.vim"))
;; For tests.
("tzdata" ,tzdata-for-tests)))