1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
3 ;;; Copyright © 2016, 2017, 2018, 2019, 2020, 2021, 2022 Efraim Flashner <efraim@flashner.co.il>
4 ;;; Copyright © 2016, 2017 Nikita <nikita@n0.is>
5 ;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net>
6 ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
7 ;;; Copyright © 2018–2021 Tobias Geerinckx-Rice <me@tobias.gr>
8 ;;; Copyright © 2019 HiPhish <hiphish@posteo.de>
9 ;;; Copyright © 2019 Julien Lepiller <julien@lepiller.eu>
10 ;;; Copyright © 2019, 2020 Jakub Kądziołka <kuba@kadziolka.net>
11 ;;; Copyright © 2020, 2021 Jack Hill <jackhill@jackhill.us>
12 ;;; Copyright © 2021 Simon Tournier <zimon.toutoune@gmail.com>
13 ;;; Copyright © 2021 Tissevert <tissevert+guix@marvid.fr>
14 ;;; Copyright © 2021 Foo Chuan Wei <chuanwei.foo@hotmail.com>
16 ;;; This file is part of GNU Guix.
18 ;;; GNU Guix is free software; you can redistribute it and/or modify it
19 ;;; under the terms of the GNU General Public License as published by
20 ;;; the Free Software Foundation; either version 3 of the License, or (at
21 ;;; your option) any later version.
23 ;;; GNU Guix is distributed in the hope that it will be useful, but
24 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
25 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 ;;; GNU General Public License for more details.
28 ;;; You should have received a copy of the GNU General Public License
29 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
31 (define-module (gnu packages vim)
32 #:use-module ((guix licenses) #:prefix license:)
33 #:use-module (guix packages)
34 #:use-module (guix gexp)
35 #:use-module (guix utils)
36 #:use-module (guix download)
37 #:use-module (guix git-download)
38 #:use-module (guix build-system cmake)
39 #:use-module (guix build-system copy)
40 #:use-module (guix build-system gnu)
41 #:use-module (guix build-system python)
42 #:use-module (gnu packages)
43 #:use-module (gnu packages acl)
44 #:use-module (gnu packages admin) ; For GNU hostname
45 #:use-module (gnu packages attr)
46 #:use-module (gnu packages autotools)
47 #:use-module (gnu packages base)
48 #:use-module (gnu packages code)
49 #:use-module (gnu packages enlightenment)
50 #:use-module (gnu packages fontutils)
51 #:use-module (gnu packages gawk)
52 #:use-module (gnu packages gettext)
53 #:use-module (gnu packages glib)
54 #:use-module (gnu packages gperf)
55 #:use-module (gnu packages groff)
56 #:use-module (gnu packages gtk)
57 #:use-module (gnu packages image)
58 #:use-module (gnu packages jemalloc)
59 #:use-module (gnu packages libevent)
60 #:use-module (gnu packages linux)
61 #:use-module (gnu packages lua)
62 #:use-module (gnu packages ncurses)
63 #:use-module (gnu packages perl)
64 #:use-module (gnu packages pkg-config)
65 #:use-module (gnu packages python)
66 #:use-module (gnu packages python-xyz)
67 #:use-module (gnu packages ruby)
68 #:use-module (gnu packages serialization)
69 #:use-module (gnu packages shells)
70 #:use-module (gnu packages tcl)
71 #:use-module (gnu packages text-editors)
72 #:use-module (gnu packages terminals)
73 #:use-module (gnu packages xdisorg)
74 #:use-module (gnu packages xorg))
83 (url "https://github.com/vim/vim")
84 (commit (string-append "v" version))))
85 (file-name (git-file-name name version))
88 "1aqrywyry4vxf1x7mk5g1k5k6md38bnjb6f778hmk8ahx26mpqpb"))))
89 (build-system gnu-build-system)
91 `(#:test-target "test"
94 (modify-phases %standard-phases
95 (add-after 'configure 'patch-absolute-paths
97 (substitute* "runtime/tools/mve.awk"
98 (("/usr/bin/nawk") (which "gawk")))
99 (substitute* '("src/testdir/Makefile"
100 "src/testdir/test_normal.vim"
101 "src/testdir/test_popupwin.vim"
102 "src/testdir/test_shell.vim"
103 "src/testdir/test_system.vim"
104 "src/testdir/test_terminal.vim"
105 "src/testdir/test_terminal2.vim")
106 (("/bin/sh") (which "sh")))
107 (substitute* "src/testdir/test_autocmd.vim"
108 (("/bin/kill") (which "kill")))))
109 (add-before 'check 'set-environment-variables
110 (lambda* (#:key inputs #:allow-other-keys)
111 ;; One of the tests tests timezone-dependent functions.
113 (search-input-directory inputs "share/zoneinfo"))
115 ;; Make sure the TERM environment variable is set for the tests
116 (setenv "TERM" "xterm")))
117 (add-before 'check 'skip-or-fix-failing-tests
119 ;; This test assumes that PID 1 is run as root and that the user
120 ;; running the test suite does not have permission to kill(1, 0)
121 ;; it. This is not true in the build container, where both PID 1
122 ;; and the test suite are run as the same user. Skip the test.
123 ;; An alternative fix would be to patch the PID used to a random
124 ;; 32-bit value and hope it never shows up in the test environment.
125 (substitute* "src/testdir/test_swap.vim"
126 (("if !IsRoot\\(\\)") "if 0"))
128 ;; These tests check how the terminal looks after executing some
129 ;; actions. The path of the bash binary is shown, which results in
130 ;; a difference being detected. Patching the expected result is
131 ;; non-trivial due to the special format used, so skip the test.
132 (substitute* "src/testdir/test_terminal.vim"
133 ((".*Test_open_term_from_cmd.*" line)
134 (string-append line "return\n"))
135 ((".*Test_terminal_postponed_scrollback.*" line)
136 (string-append line "return\n"))
137 ((".*Test_combining_double_width.*" line)
138 (string-append line "return\n")))
139 (substitute* "src/testdir/test_popupwin.vim"
140 ((".*Test_popup_drag_termwin.*" line)
141 (string-append line "return\n")))))
142 (add-before 'install 'fix-installman.sh
144 (substitute* "src/installman.sh"
147 (add-after 'install 'install-guix.vim
148 (lambda* (#:key inputs outputs #:allow-other-keys)
149 (let ((vimdir (string-append (assoc-ref outputs "out") "/share/vim")))
151 (copy-file (assoc-ref inputs "guix.vim")
152 (string-append vimdir "/vimrc"))))))))
154 (list gawk ncurses perl tcsh)) ; For runtime/tools/vim32
156 `(("libtool" ,libtool)
157 ("guix.vim" ,(search-auxiliary-file "guix.vim"))
160 ("tzdata" ,tzdata-for-tests)))
161 (home-page "https://www.vim.org/")
162 (synopsis "Text editor based on vi")
163 ;; The description shares language with the vim-full package. When making
164 ;; changes, check if the other description also needs to be updated.
166 "Vim is a highly configurable text editor built to enable efficient text
167 editing. It is an improved version of the vi editor distributed with most UNIX
170 Vim is often called a \"programmer's editor,\" and so useful for programming
171 that many consider it an entire IDE. It's not just for programmers, though.
172 Vim is perfect for all kinds of text editing, from composing email to editing
173 configuration files.")
174 (license license:vim)))
177 (package (inherit vim)
181 #:make-flags #~(list (string-append "CC=" #$(cc-for-target)))
182 #:tests? #f ; there are none
184 #~(modify-phases %standard-phases
186 (add-after 'unpack 'chdir
190 (lambda* (#:key outputs #:allow-other-keys)
191 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
192 (install-file "xxd" bin)))))))
195 (synopsis "Hexdump utility from vim")
196 (description "This package provides the Hexdump utility xxd that comes
197 with the editor vim.")))
199 (define-public vim-full
205 (list (string-append "--with-lua-prefix="
206 (assoc-ref %build-inputs "lua"))
207 "--with-features=huge"
208 "--enable-python3interp=yes"
209 "--enable-perlinterp=yes"
210 "--enable-rubyinterp=yes"
211 "--enable-tclinterp=yes"
212 "--enable-luainterp=yes"
219 ,@(substitute-keyword-arguments (package-arguments vim)
220 ;; This flag fixes the following error:
221 ;; .../libpython3.7m.a(pyexpat.o): undefined reference to symbol 'XML_FreeContentModel'
222 ;; .../libexpat.so.1: error adding symbols: DSO missing from command line
223 ((#:make-flags flags)
225 (list "LDFLAGS=-lexpat")
228 `(modify-phases ,phases
229 (add-before 'check 'start-xserver
230 (lambda* (#:key inputs #:allow-other-keys)
231 ;; Some tests require an X server, but does not start one.
232 (let ((xorg-server (assoc-ref inputs "xorg-server"))
234 (setenv "DISPLAY" display)
235 (zero? (system (string-append xorg-server "/bin/Xvfb "
236 display " &")))))))))))
238 (modify-inputs (package-native-inputs vim)
239 (prepend pkg-config xorg-server-for-tests)))
245 ("fontconfig" ,fontconfig)
246 ("freetype" ,freetype)
247 ("gdk-pixbuf" ,gdk-pixbuf)
248 ("gettext" ,gettext-minimal)
252 ("harfbuzz" ,harfbuzz)
257 ("libxdmcp" ,libxdmcp)
266 ,@(package-inputs vim)))
267 ;; The description shares language with the vim package. When making
268 ;; changes, check if the other description also needs to be updated.
269 (description "Vim is a highly configurable text editor built to enable efficient text
270 editing. It is an improved version of the vi editor distributed with most UNIX
273 Vim is often called a \"programmer's editor,\" and so useful for programming
274 that many consider it an entire IDE. It's not just for programmers, though.
275 Vim is perfect for all kinds of text editing, from composing email to editing
278 This package provides a version of Vim with many optional features enabled.
279 It includes a graphical interface, @command{gvim}, and support for plugins
280 written in the Python 3, Perl, Ruby, Tcl, and Lua programming languages.")))
282 (define-public vim-neocomplete
284 (name "vim-neocomplete")
290 (url "https://github.com/Shougo/neocomplete.vim")
291 (commit (string-append "ver." version))))
292 (file-name (git-file-name name version))
295 "1h6sci5mhdfg6sjsjpi8l5li02hg858zcayiwl60y9j2gqnd18lv"))))
296 (build-system copy-build-system)
299 '(("autoload" "share/vim/vimfiles/")
300 ("doc" "share/vim/vimfiles/")
301 ("plugin" "share/vim/vimfiles/"))))
302 (synopsis "Next generation completion framework for Vim")
304 "@code{neocomplete}, an abbreviation of 'neo-completion with cache',
306 It provides keyword completion system by maintaining a cache of keywords in
307 the current buffer. Neocomplete can be customized easily and has many more
308 features than Vim's built-in completion.")
309 (home-page "https://github.com/Shougo/neocomplete.vim/")
310 (license license:expat)))
312 ;; There are no release tarballs.
313 (define-public vim-neosnippet-snippets
314 (let ((commit "8e2b1c0cab9ed9a832b3743dbb65e9966a64331a")
317 (name "vim-neosnippet-snippets")
318 (version (string-append "0.0.0-" revision "." (string-take commit 7)))
323 (url "https://github.com/Shougo/neosnippet-snippets")
325 (file-name (string-append name "-" version "-checkout"))
328 "151wpvbj6jb9jdkbhj3b77f5sq7y328spvwfbqyj1y32rg4ifmc6"))))
329 (build-system copy-build-system)
332 '(("neosnippets" "share/vim/vimfiles/"))))
333 (synopsis "Snippets for neosnippet")
335 "@code{neosnippet-snippets} provides standard snippets for the Vim plugin
336 @code{neosnippet}. Snippets are small templates for commonly used code that
337 you can fill in on the fly.")
338 (home-page "https://github.com/Shougo/neosnippet-snippets")
339 (license license:expat))))
341 ;; The released tarball is too old for our Vim.
342 (define-public vim-neosnippet
343 (let ((commit "1bd7e23c79b73da16eb0c9469b25c376d3594583")
346 (name "vim-neosnippet")
347 (version (string-append "4.2-" revision "." (string-take commit 7)))
352 (url "https://github.com/Shougo/neosnippet.vim/")
354 (file-name (string-append name "-" version "-checkout"))
357 "0k80syscmpnj38ks1fq02ds59g0r4jlg9ll7z4qc048mgi35alw5"))))
358 (build-system copy-build-system)
361 '(("autoload" "share/vim/vimfiles/")
362 ("doc" "share/vim/vimfiles/")
363 ("ftdetect" "share/vim/vimfiles/")
364 ("ftplugin" "share/vim/vimfiles/")
365 ("indent" "share/vim/vimfiles/")
366 ("plugin" "share/vim/vimfiles/")
367 ("rplugin" "share/vim/vimfiles/")
368 ("syntax" "share/vim/vimfiles/"))))
369 (synopsis "Snippet support for Vim")
371 "@code{neosnippet}, is a plugin for Vim which adds snippet support to Vim.
372 Snippets are small templates for commonly used code that you can fill in on
373 the fly. To use snippets can increase your productivity in Vim a lot.
374 The functionality of this plug-in is quite similar to plug-ins like
375 @code{snipMate.vim} or @code{snippetsEmu.vim}. But since you can choose
376 snippets with the neocomplcache / neocomplete interface, you might have less
377 trouble using them, because you do not have to remember each snippet name.")
378 (home-page "https://github.com/Shougo/neosnippet.vim/")
379 (license license:expat))))
381 (define-public vim-scheme
382 (let ((commit "e22fc8e199ef52f2efacd08e71c3add90d83b375")
386 (version (git-version "0.0.0" revision commit))
391 (url "https://git.foldling.org/vim-scheme.git")
393 (file-name (git-file-name name version))
396 "04h946vr4f8wxap3wzqs69y2v8n50g2zbk22jsg2kxr4c01z5cbw"))))
397 (build-system copy-build-system)
400 '(("ftplugin" "share/vim/vimfiles/")
401 ("indent" "share/vim/vimfiles/")
402 ("syntax" "share/vim/vimfiles/"))))
403 (synopsis "Scheme syntax for Vim")
405 "@code{vim-scheme} provides Scheme support for Vim (R7RS and CHICKEN).")
406 (home-page "https://foldling.org/git/vim-scheme.git/")
407 (license license:unlicense))))
409 (define-public vim-luna
410 (let ((commit "633619953dcf8577168e255230f96b05f28d6371")
414 (version (string-append "0.0.0-" revision "." (string-take commit 7)))
419 (url "https://github.com/notpratheek/vim-luna")
421 (file-name (string-append name "-" version "-checkout"))
424 "0ka3qbhsh8lix1vyj4678j7dnchkd8khhirrnn3aylxxf8fpqyg8"))))
425 (build-system copy-build-system)
428 '(("colors" "share/vim/vimfiles/"))))
429 (synopsis "Dark color theme for Vim")
431 "@code{vim-luna} is a dark color theme for Vim.")
432 (home-page "https://github.com/notpratheek/vim-luna")
433 (license license:expat))))
435 ;; There are no tarball releases.
436 (define-public vim-context-filetype
437 (let ((commit "5e85f8cae26806f391aefe2661791a6de53bcea2")
440 (name "vim-context-filetype")
441 (version (string-append "0.0.0-" revision "." (string-take commit 7)))
446 (url "https://github.com/Shougo/context_filetype.vim")
448 (file-name (string-append name "-" version "-checkout"))
451 "0alvrfhmd91zkd9h83s8wvgyq4iakcf6rybsyjd369qbgpcqky89"))))
452 (build-system copy-build-system)
455 '(("doc" "share/vim/vimfiles/")
456 ("autoload" "share/vim/vimfiles/"))))
457 (synopsis "Context filetype library for Vim")
459 "@code{vim-context-filetype} is context filetype library for Vim script.")
460 (home-page "https://github.com/Shougo/context_filetype.vim")
461 (license license:expat)))) ; ??? check again
463 (define-public vim-fugitive
465 (name "vim-fugitive")
471 (url "https://github.com/tpope/vim-fugitive")
472 (commit (string-append "v" version))))
473 (file-name (git-file-name name version))
475 (base32 "17c3wzqkbzbf0nmlxpgk90yyv3d09209fqxqysand8bzb1cbfwzn"))))
476 (build-system copy-build-system)
479 '(("autoload" "share/vim/vimfiles/")
480 ("doc" "share/vim/vimfiles/")
481 ("ftdetect" "share/vim/vimfiles/")
482 ("ftplugin" "share/vim/vimfiles/")
483 ("plugin" "share/vim/vimfiles/")
484 ("syntax" "share/vim/vimfiles/"))))
485 (home-page "https://github.com/tpope/vim-fugitive")
486 (synopsis "Vim plugin to work with Git")
487 (description "Vim-fugitive is a wrapper for Vim that complements the
488 command window, where you can stage and review your changes before the next
489 commit or run any Git arbitrary command.")
490 (license license:vim))) ; distributed under the same license as vim
492 (define-public vim-airline
500 (url "https://github.com/vim-airline/vim-airline")
501 (commit (string-append "v" version))))
502 (file-name (git-file-name name version))
505 "1aksmr73648pvyc75pfdz28k2d4ky52rn7xiwcv7lz87q3vqld7k"))))
506 (build-system copy-build-system)
509 '(("autoload" "share/vim/vimfiles/")
510 ("doc" "share/vim/vimfiles/")
511 ("plugin" "share/vim/vimfiles/"))))
512 (synopsis "Statusline for Vim")
514 "@code{vim-airline} is an extensible statusline for Vim.
515 It can be extended and costumized with themes, works with unicode fonts
516 and powerline symbols, etc.")
517 (home-page "https://github.com/vim-airline/vim-airline")
518 (license license:expat)))
520 ;; There are no tarball releases.
521 (define-public vim-airline-themes
522 (let ((commit "e6f233231b232b6027cde6aebeeb18d9138e5324")
525 (name "vim-airline-themes")
526 (version (git-version "0.0.0" revision commit))
531 (url "https://github.com/vim-airline/vim-airline-themes")
533 (file-name (git-file-name name version))
536 "1sb7nb7j7bz0pv1c9bgdy0smhr0jk2b1vbdv9yzghg5lrknpsbr6"))))
537 (build-system copy-build-system)
540 '(("autoload" "share/vim/vimfiles/")
541 ("doc" "share/vim/vimfiles/")
542 ("plugin" "share/vim/vimfiles/"))))
543 (synopsis "Collection of themes for Vim-airline")
545 "@code{vim-airline-themes} is a collection of themes for @code{vim-airline}.")
546 (home-page "https://github.com/vim-airline/vim-airline-themes")
547 (license license:expat))))
549 (define-public vim-syntastic
551 (name "vim-syntastic")
557 (url "https://github.com/vim-syntastic/syntastic")
559 (file-name (git-file-name name version))
561 (base32 "0j91f72jaz1s6aw1hpjiz30vk2ds2aqd9gisk91grsldy6nz6hhz"))))
562 (build-system copy-build-system)
565 '(("autoload" "share/vim/vimfiles/")
566 ("doc" "share/vim/vimfiles/")
567 ("plugin" "share/vim/vimfiles/")
568 ("syntax_checkers" "share/vim/vimfiles/"))))
569 (synopsis "Syntax checking plugin for Vim")
571 "Vim-syntastic is a syntax checking plugin for Vim. It runs files through
572 external syntax checkers and displays any resulting errors to the user. This
573 can be done on demand, or automatically as files are saved. If syntax errors
574 are detected, the user is notified.")
575 (home-page "https://github.com/vim-syntastic/syntastic")
576 (license license:wtfpl2)))
578 (define-public vim-solarized
579 (let ((commit "62f656a02f93c5190a8753159e34b385588d5ff3")
582 (name "vim-solarized")
583 (version (git-version "1.0.0beta1" revision commit))
588 (url "https://github.com/altercation/solarized")
590 (file-name (git-file-name name version))
592 (base32 "0001mz5v3a8zvi3gzmxhi3yrsb6hs7qf6i497arsngnvj2cwn61d"))))
593 (build-system copy-build-system)
596 '(("vim-colors-solarized/colors" "share/vim/vimfiles/")
597 ("vim-colors-solarized/doc" "share/vim/vimfiles/"))))
598 (home-page "https://github.com/altercation/vim-colors-solarized")
599 (synopsis "Solarized color scheme for Vim")
601 "This package provides the Solarized theme as a Vim color scheme.
603 Solarized is a 16-color palette comprising 8 monotones and 8 accent
604 colors. It was designed for use with both terminal and GUI applications, and
605 has a dark and a light mode.
607 Based on CIELAB lightness relationships between colors, this theme reduces
608 brightness contrast but retains contrasting hues based on colorwheel relations
609 for syntax highlighting readability.
611 It keeps the same selective contrast relationships and overall feel when
612 switching between the light and dark background modes.")
613 (license license:expat))))
615 (define-public editorconfig-vim
617 (name "editorconfig-vim")
623 (url "https://github.com/editorconfig/editorconfig-vim")
624 (commit (string-append "v" version))))
625 (file-name (git-file-name name version))
628 "0mp80bi2m56bb93szw87vy6q5s85yk9g91sl4pr51316rgdv5kkv"))))
629 (build-system copy-build-system)
632 '(("autoload" "share/vim/vimfiles/")
633 ("doc" "share/vim/vimfiles/")
634 ("plugin" "share/vim/vimfiles/"))))
635 (home-page "https://editorconfig.org/")
636 (synopsis "EditorConfig plugin for Vim")
637 (description "EditorConfig makes it easy to maintain the correct coding
638 style when switching between different text editors and between different
639 projects. The EditorConfig project maintains a file format and plugins for
640 various text editors which allow this file format to be read and used by those
642 (license license:bsd-2)))
644 (define-public neovim-syntastic
646 (inherit vim-syntastic)
647 (name "neovim-syntastic")
650 '(("autoload" "share/nvim/site/")
651 ("doc" "share/nvim/site/")
652 ("plugin" "share/nvim/site/")
653 ("syntax_checkers" "share/nvim/site/"))))
654 (synopsis "Syntax checking plugin for Neovim")
656 "Vim-syntastic is a syntax checking plugin for Neovim. It runs files through
657 external syntax checkers and displays any resulting errors to the user. This
658 can be done on demand, or automatically as files are saved. If syntax errors
659 are detected, the user is notified.")))
661 (define-public neovim
669 (url "https://github.com/neovim/neovim")
670 (commit (string-append "v" version))))
671 (file-name (git-file-name name version))
673 (base32 "11zyj6jvkwas3n6w1ckj3pk6jf81z1g7ngg4smmwm7c27y2a6f2m"))))
674 (build-system cmake-build-system)
676 `(#:modules ((srfi srfi-26)
677 (guix build cmake-build-system)
679 #:configure-flags '("-DPREFER_LUA:BOOL=YES")
681 (modify-phases %standard-phases
682 (add-after 'unpack 'set-lua-paths
683 (lambda* (#:key inputs #:allow-other-keys)
684 (let* ((lua-version "5.1")
687 (let ((path (string-append prefix "/lib/lua/" lua-version)))
688 (string-append path "/?.so;" path "/?/?.so"))))
691 (let ((path (string-append prefix "/share/lua/" lua-version)))
692 (string-append path "/?.lua;" path "/?/?.lua"))))
693 (lua-inputs (map (cute assoc-ref inputs <>)
700 (string-join (map lua-path-spec lua-inputs) ";"))
702 (string-join (map lua-cpath-spec lua-inputs) ";"))
704 (add-after 'unpack 'prevent-embedding-gcc-store-path
706 ;; nvim remembers its build options, including the compiler with
707 ;; its complete path. This adds gcc to the closure of nvim, which
708 ;; doubles its size. We remove the refirence here.
709 (substitute* "cmake/GetCompileFlags.cmake"
710 (("\\$\\{CMAKE_C_COMPILER\\}") "/gnu/store/.../bin/gcc"))
715 ("libtermkey" ,libtermkey)
716 ("libvterm" ,libvterm)
717 ("unibilium" ,unibilium)
718 ("jemalloc" ,jemalloc)
719 ("libiconv" ,libiconv)
721 ("lua-luv" ,lua5.1-luv)
722 ("lua-lpeg" ,lua5.1-lpeg)
723 ("lua-bitop" ,lua5.1-bitop)
724 ("lua-libmpack" ,lua5.1-libmpack)))
726 `(("pkg-config" ,pkg-config)
727 ("gettext" ,gettext-minimal)
729 (home-page "https://neovim.io")
730 (synopsis "Fork of vim focused on extensibility and agility")
731 (description "Neovim is a project that seeks to aggressively
732 refactor Vim in order to:
735 @item Simplify maintenance and encourage contributions
736 @item Split the work between multiple developers
737 @item Enable advanced external UIs without modifications to the core
738 @item Improve extensibility with a new plugin architecture
740 ;; Neovim is licensed under the terms of the Apache 2.0 license,
741 ;; except for parts that were contributed under the Vim license.
742 (license (list license:asl2.0 license:vim))))
752 (url "https://github.com/jeanguyomarch/eovim/")
753 (commit (string-append "v" version))))
754 (file-name (git-file-name name version))
756 (base32 "06b7crmz3wvvq15ncl0jk20s8j1pmna2jin0k5y5n5qxpafbgp3k"))))
757 (build-system cmake-build-system)
759 '(#:tests? #false ;no tests
761 (modify-phases %standard-phases
762 (add-after 'configure 'reference-nvim
763 (lambda* (#:key inputs #:allow-other-keys)
764 (let ((nvim (search-input-file inputs "/bin/nvim")))
765 ;; This substitution should change one line, and replaces the default
766 ;; value in the struct of options with an absolute store reference.
767 (substitute* "../source/src/main.c"
768 (("(^[[:blank:]]+\\.nvim = \")nvim" _ start)
769 (string-append start nvim))))))
770 (add-before 'build 'set-home
771 (lambda _ (setenv "HOME" "/tmp"))))))
775 (list efl msgpack neovim))
776 (home-page "https://github.com/jeanguyomarch/eovim/")
777 (synopsis "EFL GUI for Neovim")
778 (description "Graphical Neovim interface based on the @acronym{EFL, Enlightenment
779 Foundation Libraries} toolkit. Its features include customizable appearance
780 and support for fonts with ligatures.")
781 (license license:expat)))
791 (string-append "https://github.com/vifm/vifm/releases/download/v"
792 version "/vifm-" version ".tar.bz2")
793 (string-append "https://sourceforge.net/projects/vifm/files/vifm/"
794 "vifm-" version ".tar.bz2")))
797 "1h5j4y704nciyzg3aaav8sl3r5h9mpwq8f28cj65nnxk6a7n3a9k"))))
798 (build-system gnu-build-system)
800 '(#:configure-flags '("--disable-build-timestamp")
802 (modify-phases %standard-phases
803 (add-after 'patch-source-shebangs 'patch-test-shebangs
805 (substitute* (cons* "src/background.c"
807 (find-files "tests" "\\.c$"))
808 (("/bin/sh") (which "sh"))
809 (("/bin/bash") (which "bash")))
810 ;; This test segfaults
811 (substitute* "tests/Makefile"
814 (add-after 'install 'install-vim-plugin-files
815 (lambda* (#:key outputs #:allow-other-keys)
816 (let* ((out (assoc-ref outputs "out"))
817 (vifm (string-append out "/share/vifm"))
818 (vimfiles (string-append out "/share/vim/vimfiles")))
819 (copy-recursively (string-append vifm "/colors")
820 (string-append vimfiles "/colors"))
821 (copy-recursively (string-append vifm "/vim")
823 (delete-file-recursively (string-append vifm "/colors"))
824 (delete-file-recursively (string-append vifm "/vim")))
827 (list groff)) ; for the documentation
829 (list libx11 ncurses perl))
830 (home-page "https://vifm.info/")
831 (synopsis "Flexible vi-like file manager using ncurses")
832 (description "Vifm is a file manager providing a @command{vi}-like usage
833 experience. It has similar keybindings and modes (e.g. normal, command line,
834 visual). The interface uses ncurses, thus vifm can be used in text-only
835 environments. It supports a wide range of features, some of which are known
836 from the @command{vi}-editor:
839 @item user mappings (almost like in @code{vi})
840 @item ranges in command
842 @item user defined commands (with support for ranges)
844 @item operation undoing/redoing
845 @item fuse file systems support
847 @item multiple files renaming
848 @item support of filename modifiers
849 @item colorschemes support
850 @item file name color according to file type
851 @item path specific colorscheme customization
853 @item operation backgrounding
854 @item customizable file viewers
855 @item handy @code{less}-like preview mode
856 @item filtering out and searching for files using regular expressions
857 @item one or two panes view
859 With the package comes a plugin to use vifm as a vim file selector.")
860 (license license:gpl2+)))
862 (define-public python-pynvim
864 (name "python-pynvim")
868 (uri (pypi-uri "pynvim" version))
871 "13qgwkqbx012j5spis1aw8rb120rw0zphgjy1j58irax8r6j1ikb"))))
872 (build-system python-build-system)
874 (list python-greenlet python-msgpack))
877 (home-page "https://github.com/neovim/pynvim")
878 (synopsis "Python client and plugin host for neovim")
879 (description "Pynvim implements support for python plugins in neovim. It
880 also works as a library for connecting to and scripting neovim processes
881 through its msgpack-rpc API.")
882 (license license:asl2.0)))
884 (define-public vim-guix-vim
886 (name "vim-guix-vim")
891 (url "https://gitlab.com/Efraim/guix.vim")
893 (file-name (git-file-name name version))
896 "080ni4z23qdr8rkrswjqfqfrrcnpn7qdgrg14glwji46wzvwxqyx"))))
897 (build-system copy-build-system)
900 '(("autoload" "share/vim/vimfiles/")
901 ("compiler" "share/vim/vimfiles/")
902 ("doc" "share/vim/vimfiles/")
903 ("indent" "share/vim/vimfiles/")
904 ("ftdetect" "share/vim/vimfiles/")
905 ("ftplugin" "share/vim/vimfiles/")
906 ("plugin" "share/vim/vimfiles/")
907 ("syntax" "share/vim/vimfiles/"))))
908 (home-page "https://gitlab.com/Efraim/guix.vim")
909 (synopsis "Guix integration in Vim")
910 (description "This package provides support for GNU Guix in Vim.")
911 (license license:vim)))
913 (define-public vim-asyncrun
915 (name "vim-asyncrun")
920 (url "https://github.com/skywind3000/asyncrun.vim")
922 (file-name (git-file-name name version))
925 "11zcw0sll6qg6ha0rr6n1cw5v73azvf7ycwn9lgiwa5cj7rrqjf4"))))
926 (build-system copy-build-system)
929 '(("plugin" "share/vim/vimfiles/")
930 ("doc/" "share/vim/vimfiles/doc" #:include ("asyncrun.txt")))))
931 (home-page "https://github.com/skywind3000/asyncrun.vim")
932 (synopsis "Run Async Shell Commands in Vim")
933 (description "This plugin takes the advantage of new APIs in Vim 8 (and
934 NeoVim) to enable you to run shell commands in background and read output in the
935 quickfix window in realtime.")
936 (license license:expat)))
938 (define-public vim-dispatch
940 (name "vim-dispatch")
946 (url "https://github.com/tpope/vim-dispatch")
947 (commit (string-append "v" version))))
948 (file-name (git-file-name name version))
951 "1m8b5mn2zqlphzs6xfwykwmghf6p0wabrhpjmh7vav35jgcxc4wl"))))
952 (build-system copy-build-system)
955 '(("autoload" "share/vim/vimfiles/")
956 ("doc" "share/vim/vimfiles/")
957 ("plugin" "share/vim/vimfiles/"))))
958 (home-page "https://github.com/tpope/vim-dispatch")
959 (synopsis "Asynchronous build and test dispatcher")
960 (description "Leverage the power of Vim's compiler plugins without being
961 bound by synchronicity. Kick off builds and test suites using one of several
962 asynchronous adapters (including tmux, screen, and a headless mode), and when
963 the job completes, errors will be loaded and parsed automatically.")
964 (license license:vim)))
966 (define-public vim-gemini-vim
967 ;; No releases have been tagged.
968 (let ((commit "f300c54174fc0db8fb68f1bc04307b58612e9630")
971 (name "vim-gemini-vim")
972 (version (git-version "0.0.0" revision commit))
977 (url "https://git.sr.ht/~torresjrjr/gemini.vim")
979 (file-name (git-file-name name version))
981 (base32 "05ffhhfahjqwxyrqmsinsahrs15wknzl2qbj8mznyv319mn2civ2"))))
982 (build-system copy-build-system)
985 '(("ftdetect" "share/vim/vimfiles/")
986 ("syntax" "share/vim/vimfiles/"))))
987 (home-page "https://git.sr.ht/~torresjrjr/gemini.vim")
988 (synopsis "Vim syntax highlighting plugin for Gemini")
989 (description "This Vim plugin provides a Vim syntax highlighting plugin
990 for Gemini Text, the text/gemini media type, as defined in the Gemini protocol
992 (license license:gpl3))))
994 (define-public vim-eunuch
995 (let ((commit "33e875b31c8b811a0a47908884a5e2339106bbe8")
999 (version (git-version "1.2" revision commit))
1004 (url "https://github.com/tpope/vim-eunuch")
1006 (file-name (git-file-name name version))
1009 "1xadb22kd40swmww0qxmmkcpcq6viy8l167pjck5q32hfngll5d3"))))
1010 (build-system copy-build-system)
1013 '(("doc" "share/vim/vimfiles/")
1014 ("plugin" "share/vim/vimfiles/"))))
1015 (home-page "https://github.com/tpope/vim-eunuch")
1016 (synopsis "Vim sugar for the UNIX shell commands")
1017 (description "Vim sugar for the UNIX shell commands that need it the most.
1018 This package includes commands such as @code{SudoWrite} and @code{SudoEdit} and
1019 help working on Vim buffers and the files they reference with one command.")
1020 (license license:vim))))
1022 (define-public vim-slime
1023 ;; No tagged releases.
1024 (let ((commit "a522fed677e50175f52efc5848cc35209af33216")
1028 (version (git-version "0.0.0" revision commit))
1033 (url "https://github.com/jpalardy/vim-slime")
1035 (file-name (git-file-name name version))
1037 (base32 "0k4b629jn6xlxyjxdl3cgm06v9dmx967rqnslv5m82c9kscwpyh4"))))
1038 (build-system copy-build-system)
1041 '(("autoload" "share/vim/vimfiles/")
1042 ("doc" "share/vim/vimfiles/")
1043 ("ftplugin" "share/vim/vimfiles/")
1044 ("plugin" "share/vim/vimfiles/"))))
1045 (home-page "https://technotales.wordpress.com/2007/10/03/like-slime-for-vim/")
1046 (synopsis "Vim plugin to give you some slime")
1047 (description "SLIME is an Emacs plugin to turn Emacs into a Lisp IDE. You
1048 can type text in a file, send it to a live REPL, and avoid having to reload all
1049 your code every time you make a change. @code{Vim-slime} is an attempt at
1050 getting some of these features into Vim. It works with any REPL and isn't tied
1052 (license license:expat))))
1054 (define-public vim-paredit
1055 ;; The last tagged version is from August 2013.
1056 (let ((commit "97d51d099523b37bb35cbcf3564cbfb46e66e4ec")
1059 (name "vim-paredit")
1060 (version (git-version "0.9.11" revision commit))
1065 (url "https://github.com/kovisoft/paredit")
1067 (file-name (git-file-name name version))
1069 (base32 "07d5s20r0ssd7rir45vy0fqlci44gha1a81rcilgar227f3nw328"))))
1070 (build-system copy-build-system)
1073 '(("doc" "share/vim/vimfiles/")
1074 ("plugin" "share/vim/vimfiles/"))))
1075 (home-page "https://github.com/kovisoft/paredit")
1076 (synopsis "Vim plugin for structured editing of Lisp S-expressions")
1078 "Paredit performs structured editing of Lisp S-expressions in Vim.
1079 @code{Paredit.vim} is similar to @code{paredit.el} for Emacs.")
1080 ;; License listed in plugin/paredit.vim.
1081 (license license:public-domain))))
1083 (define-public vim-surround
1085 (name "vim-surround")
1091 (url "https://github.com/tpope/vim-surround")
1092 (commit (string-append "v" version))))
1093 (file-name (git-file-name name version))
1095 (base32 "1b0bd5m5lv1p4d299mrwjfs2gk0zqwyaqdaid9hs9yqlxnr8s5nf"))))
1096 (build-system copy-build-system)
1099 '(("doc" "share/vim/vimfiles/")
1100 ("plugin" "share/vim/vimfiles/"))))
1101 (home-page "https://github.com/tpope/vim-surround")
1102 (synopsis "Vim plugin for easy quoting and parenthesizing")
1104 "Surround.vim is all about \"surroundings\": parentheses, brackets,
1105 quotes, XML tags, and more. The plugin provides mappings to easily delete,
1106 change and add such surroundings in pairs.")
1107 (license license:vim)))
1109 (define-public vim-gnupg
1116 (uri (string-append "https://github.com/jamessan/vim-gnupg/releases/"
1117 "download/v" version
1118 "/vim-gnupg-v" version ".tar.gz"))
1120 (base32 "02w8lgyyh7wgxysvmmcf9ja5c06vrbyh3alzvv97x8cfhrp0skn7"))))
1121 (build-system copy-build-system)
1124 '(("autoload" "share/vim/vimfiles/")
1125 ("doc" "share/vim/vimfiles/")
1126 ("plugin" "share/vim/vimfiles/"))))
1127 (home-page "https://www.vim.org/scripts/script.php?script_id=3645")
1128 (synopsis "Vim plugin for transparent editing of gpg encrypted files")
1130 "This script implements transparent editing of gpg encrypted files. The
1131 filename must have a @code{.gpg}, @code{.pgp} or @code{.asc} suffix. When
1132 opening such a file the content is decrypted, and the content will be encrypted
1133 to all recipients before it is written. This script turns off viminfo,
1134 swapfile, and undofile when editing encrypted files to increase security.")
1136 '((release-monitoring-url . "https://github.com/jamessan/vim-gnupg/releases")))
1137 (license license:gpl2+)))
1139 (define-public vim-ctrlp
1147 (url "https://github.com/ctrlpvim/ctrlp.vim")
1149 (file-name (git-file-name name version))
1151 (base32 "0n68hg59h4rjn0ziqbsh5pr03l3kr98zk54659ny6vq107af1w96"))))
1152 (build-system copy-build-system)
1155 '(("autoload" "share/vim/vimfiles/")
1156 ("doc" "share/vim/vimfiles/")
1157 ("plugin" "share/vim/vimfiles/"))))
1158 (home-page "https://ctrlpvim.github.io/ctrlp.vim/")
1159 (synopsis "Fuzzy file, buffer, mru, tag, etc. finder for Vim")
1163 @item Written in pure Vimscript for MacVim, gVim and Vim 7.0+.
1164 @item Full support for Vim's regexp as search patterns.
1165 @item Built-in @acronym{Most Recently Used, MRU} files monitoring and search.
1166 @item Built-in project's root finder.
1167 @item Open multiple files at once.
1168 @item Create new files and directories.
1169 @item Execute Ex commands on an opening file (jump to a line, to a string or do
1171 @item Optional cross-session caching and history allow for fast initialization.
1172 @item Mappings and usage conform to Vim's conventions.
1174 (license license:vim)))
1176 (define-public vim-mucomplete
1178 (name "vim-mucomplete")
1184 (url "https://github.com/lifepillar/vim-mucomplete")
1185 (commit (string-append "v" version))))
1186 (file-name (git-file-name name version))
1188 (base32 "054g80n09mmxxlh8xaic29bn8bgn3clvv732rymljdyvbj1mlhwd"))))
1189 (build-system copy-build-system)
1192 '(("autoload" "share/vim/vimfiles/")
1193 ("doc" "share/vim/vimfiles/")
1194 ("plugin" "share/vim/vimfiles/"))))
1195 (home-page "https://github.com/lifepillar/vim-mucomplete")
1196 (synopsis "MUcomplete is a minimalist autocompletion plugin for Vim")
1198 "MUcomplete is an implementation of chained (fallback) completion,
1199 whereby several completion methods are attempted one after another until a
1200 result is returned.")
1201 (license license:expat)))
1203 (define-public vim-gitgutter
1204 (let ((commit "256702dd1432894b3607d3de6cd660863b331818")
1207 (name "vim-gitgutter")
1208 (version (git-version "0.0.0" revision commit))
1213 (url "https://github.com/airblade/vim-gitgutter")
1215 (file-name (git-file-name name version))
1217 (base32 "0zpa7cs59a8sq0k3frlf9flpf30jcn239yrpmv40r7nqvxzglbpl"))))
1218 (build-system copy-build-system)
1221 '(("autoload" "share/vim/vimfiles/")
1222 ("doc" "share/vim/vimfiles/")
1223 ("plugin" "share/vim/vimfiles/"))))
1224 (synopsis "Vim plugin which shows a git diff in the sign column")
1226 "A Vim plugin which shows a git diff in the sign column. It shows which
1227 lines have been added, modified, or removed. You can also preview, stage, and
1228 undo individual hunks; and stage partial hunks. The plugin also provides a hunk
1229 text object. The signs are always up to date and the plugin never saves your
1231 (home-page "https://github.com/airblade/vim-gitgutter")
1232 (license license:expat))))
1234 (define-public vim-characterize
1236 (name "vim-characterize")
1242 (url "https://github.com/tpope/vim-characterize")
1243 (commit (string-append "v" version))))
1244 (file-name (git-file-name name version))
1246 (base32 "0ppsbsd696ih40d9f76mdl9sd9y7p2pvm65qmvq4b2zhkv4xbpxz"))))
1247 (build-system copy-build-system)
1250 '(("autoload" "share/vim/vimfiles/")
1251 ("doc" "share/vim/vimfiles/")
1252 ("plugin" "share/vim/vimfiles/"))))
1253 (home-page "https://github.com/tpope/vim-characterize")
1254 (synopsis "Vim plugin for showing Unicode character metadata")
1256 "In Vim, pressing @code{ga} on a character reveals its representation in
1257 decimal, octal, and hex. Characterize.vim modernizes this with the following
1260 @item Unicode character names: @code{U+00A9 COPYRIGHT SYMBOL}
1261 @item Vim digraphs (type after @code{<C-K>} to insert the character):
1262 @code{Co}, @code{cO}
1263 @item Emoji codes: @code{:copyright:}
1264 @item HTML entities: @code{©}
1266 (license license:vim)))
1268 (define-public vim-tagbar
1276 (url "https://github.com/preservim/tagbar")
1277 (commit (string-append "v" version))))
1278 (file-name (git-file-name name version))
1280 (base32 "1fqfs8msmr6d4kpvxqp14sdjvp5fj52q5w5kz71myzcd4kqzmirp"))))
1281 (build-system copy-build-system)
1284 '(("autoload" "share/vim/vimfiles/")
1285 ("doc" "share/vim/vimfiles/")
1286 ("plugin" "share/vim/vimfiles/")
1287 ("syntax" "share/vim/vimfiles/"))
1289 (modify-phases %standard-phases
1290 (add-after 'unpack 'link-univerisal-ctags
1291 (lambda* (#:key inputs #:allow-other-keys)
1292 (let ((ctags (assoc-ref inputs "universal-ctags")))
1293 (substitute* "autoload/tagbar.vim"
1294 (("(.*)universal-ctags']" all leader)
1295 (string-append all "\n"
1296 leader ctags "/bin/ctags']")))))))))
1298 (list universal-ctags))
1299 (home-page "https://github.com/preservim/tagbar")
1300 (synopsis "Vim plugin that displays tags in a window, ordered by scope")
1302 "Tagbar is a Vim plugin that provides an easy way to browse the tags of
1303 the current file and get an overview of its structure. It does this by creating
1304 a sidebar that displays the ctags-generated tags of the current file, ordered
1305 by their scope. This means that for example methods in C++ are displayed under
1306 the class they are defined in.")
1307 (license license:vim)))
1309 (define-public vim-nerdtree
1311 (name "vim-nerdtree")
1317 (url "https://github.com/preservim/nerdtree")
1319 (file-name (git-file-name name version))
1321 (base32 "1si8qla86ng8cffbmfrk9gss0i3912yw0f1ph4bsiq0kk837lccp"))))
1322 (build-system copy-build-system)
1325 '(("autoload" "share/vim/vimfiles/")
1326 ("doc" "share/vim/vimfiles/")
1327 ("lib" "share/vim/vimfiles/")
1328 ("nerdtree_plugin" "share/vim/vimfiles/")
1329 ("plugin" "share/vim/vimfiles/")
1330 ("syntax" "share/vim/vimfiles/"))))
1331 (home-page "https://github.com/preservim/nerdtree")
1332 (synopsis "Tree explorer plugin for Vim")
1334 "The NERDTree is a file system explorer for the Vim editor. Using this
1335 plugin, users can visually browse complex directory hierarchies, quickly open
1336 files for reading or editing, and perform basic file system operations.")
1337 (license license:wtfpl2)))
1339 (define-public vim-nerdcommenter
1340 (let ((commit "a65465d321f2f8a74b2ffa540b9b87563f7e12e8")
1343 (name "vim-nerdcommenter")
1344 (version (git-version "2.5.2" revision commit))
1349 (url "https://github.com/preservim/nerdcommenter")
1351 (file-name (git-file-name name version))
1353 (base32 "00ir65iv8jfbgzjmj7332fmydh0qhabbhx8zbvd3j6pgfxqpaafw"))))
1354 (build-system copy-build-system)
1357 '(("autoload" "share/vim/vimfiles/")
1358 ("doc" "share/vim/vimfiles/")
1359 ("plugin" "share/vim/vimfiles/"))))
1360 (home-page "https://github.com/preservim/nerdcommenter")
1361 (synopsis "Vim plugin for easy commenting of code")
1363 "NERD commenter is a Vim plugin that provides many different commenting
1364 operations and styles which are invoked via key mappings and a menu. These
1365 operations are available for most filetypes.")
1366 (license license:cc0))))