diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2020-09-18 18:25:06 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2020-12-20 12:52:51 +0200 |
commit | 53b51b44fd2dd4f56792ea4fc31dac55dd9558e4 (patch) | |
tree | 5e2e24cc50e0e0dd1ffaa476491fbaa00c4157e9 /gnu/packages/vim.scm | |
parent | caee6ec7c8c9ce7ef1e90963190396cda1f6ad4c (diff) | |
download | guix-53b51b44fd2dd4f56792ea4fc31dac55dd9558e4.tar.gz |
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.
Diffstat (limited to 'gnu/packages/vim.scm')
-rw-r--r-- | gnu/packages/vim.scm | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gnu/packages/vim.scm b/gnu/packages/vim.scm index 81d5ab00c9..32a668a1c0 100644 --- a/gnu/packages/vim.scm +++ b/gnu/packages/vim.scm @@ -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))) |