Merge branch 'master' into staging.
[jackhill/guix/guix.git] / gnu / packages / vim.scm
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>
15 ;;;
16 ;;; This file is part of GNU Guix.
17 ;;;
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.
22 ;;;
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.
27 ;;;
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/>.
30
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))
75
76 (define-public vim
77 (package
78 (name "vim")
79 (version "8.2.3995")
80 (source (origin
81 (method git-fetch)
82 (uri (git-reference
83 (url "https://github.com/vim/vim")
84 (commit (string-append "v" version))))
85 (file-name (git-file-name name version))
86 (sha256
87 (base32
88 "1aqrywyry4vxf1x7mk5g1k5k6md38bnjb6f778hmk8ahx26mpqpb"))))
89 (build-system gnu-build-system)
90 (arguments
91 `(#:test-target "test"
92 #:parallel-tests? #f
93 #:phases
94 (modify-phases %standard-phases
95 (add-after 'configure 'patch-absolute-paths
96 (lambda _
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.
112 (setenv "TZDIR"
113 (search-input-directory inputs "share/zoneinfo"))
114
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
118 (lambda _
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"))
127
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
143 (lambda _
144 (substitute* "src/installman.sh"
145 (("/bin/sh")
146 (which "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")))
150 (mkdir-p vimdir)
151 (copy-file (assoc-ref inputs "guix.vim")
152 (string-append vimdir "/vimrc"))))))))
153 (inputs
154 (list gawk ncurses perl tcsh)) ; For runtime/tools/vim32
155 (native-inputs
156 `(("libtool" ,libtool)
157 ("guix.vim" ,(search-auxiliary-file "guix.vim"))
158
159 ;; For tests.
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.
165 (description
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
168 systems.
169
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)))
175
176 (define-public xxd
177 (package (inherit vim)
178 (name "xxd")
179 (arguments
180 (list
181 #:make-flags #~(list (string-append "CC=" #$(cc-for-target)))
182 #:tests? #f ; there are none
183 #:phases
184 #~(modify-phases %standard-phases
185 (delete 'configure)
186 (add-after 'unpack 'chdir
187 (lambda _
188 (chdir "src/xxd")))
189 (replace 'install
190 (lambda* (#:key outputs #:allow-other-keys)
191 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
192 (install-file "xxd" bin)))))))
193 (inputs `())
194 (native-inputs `())
195 (synopsis "Hexdump utility from vim")
196 (description "This package provides the Hexdump utility xxd that comes
197 with the editor vim.")))
198
199 (define-public vim-full
200 (package
201 (inherit vim)
202 (name "vim-full")
203 (arguments
204 `(#:configure-flags
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"
213 "--enable-cscope"
214 "--enable-sniff"
215 "--enable-multibyte"
216 "--enable-xim"
217 "--disable-selinux"
218 "--enable-gui")
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)
224 `(append
225 (list "LDFLAGS=-lexpat")
226 ,flags))
227 ((#:phases phases)
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"))
233 (display ":1"))
234 (setenv "DISPLAY" display)
235 (zero? (system (string-append xorg-server "/bin/Xvfb "
236 display " &")))))))))))
237 (native-inputs
238 (modify-inputs (package-native-inputs vim)
239 (prepend pkg-config xorg-server-for-tests)))
240 (inputs
241 `(("acl" ,acl)
242 ("atk" ,atk)
243 ("attr" ,attr)
244 ("cairo" ,cairo)
245 ("fontconfig" ,fontconfig)
246 ("freetype" ,freetype)
247 ("gdk-pixbuf" ,gdk-pixbuf)
248 ("gettext" ,gettext-minimal)
249 ("glib" ,glib)
250 ("gpm" ,gpm)
251 ("gtk" ,gtk+-2)
252 ("harfbuzz" ,harfbuzz)
253 ("libice" ,libice)
254 ("libpng" ,libpng)
255 ("libsm" ,libsm)
256 ("libx11" ,libx11)
257 ("libxdmcp" ,libxdmcp)
258 ("libxt" ,libxt)
259 ("libxpm" ,libxpm)
260 ("lua" ,lua)
261 ("pango" ,pango)
262 ("pixman" ,pixman)
263 ("python-3" ,python)
264 ("ruby" ,ruby)
265 ("tcl" ,tcl)
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
271 systems.
272
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
276 configuration files.
277
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.")))
281
282 (define-public vim-neocomplete
283 (package
284 (name "vim-neocomplete")
285 (version "2.1")
286 (source
287 (origin
288 (method git-fetch)
289 (uri (git-reference
290 (url "https://github.com/Shougo/neocomplete.vim")
291 (commit (string-append "ver." version))))
292 (file-name (git-file-name name version))
293 (sha256
294 (base32
295 "1h6sci5mhdfg6sjsjpi8l5li02hg858zcayiwl60y9j2gqnd18lv"))))
296 (build-system copy-build-system)
297 (arguments
298 '(#:install-plan
299 '(("autoload" "share/vim/vimfiles/")
300 ("doc" "share/vim/vimfiles/")
301 ("plugin" "share/vim/vimfiles/"))))
302 (synopsis "Next generation completion framework for Vim")
303 (description
304 "@code{neocomplete}, an abbreviation of 'neo-completion with cache',
305 is a plugin for Vim.
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)))
311
312 ;; There are no release tarballs.
313 (define-public vim-neosnippet-snippets
314 (let ((commit "8e2b1c0cab9ed9a832b3743dbb65e9966a64331a")
315 (revision "1"))
316 (package
317 (name "vim-neosnippet-snippets")
318 (version (string-append "0.0.0-" revision "." (string-take commit 7)))
319 (source
320 (origin
321 (method git-fetch)
322 (uri (git-reference
323 (url "https://github.com/Shougo/neosnippet-snippets")
324 (commit commit)))
325 (file-name (string-append name "-" version "-checkout"))
326 (sha256
327 (base32
328 "151wpvbj6jb9jdkbhj3b77f5sq7y328spvwfbqyj1y32rg4ifmc6"))))
329 (build-system copy-build-system)
330 (arguments
331 '(#:install-plan
332 '(("neosnippets" "share/vim/vimfiles/"))))
333 (synopsis "Snippets for neosnippet")
334 (description
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))))
340
341 ;; The released tarball is too old for our Vim.
342 (define-public vim-neosnippet
343 (let ((commit "1bd7e23c79b73da16eb0c9469b25c376d3594583")
344 (revision "1"))
345 (package
346 (name "vim-neosnippet")
347 (version (string-append "4.2-" revision "." (string-take commit 7)))
348 (source
349 (origin
350 (method git-fetch)
351 (uri (git-reference
352 (url "https://github.com/Shougo/neosnippet.vim/")
353 (commit commit)))
354 (file-name (string-append name "-" version "-checkout"))
355 (sha256
356 (base32
357 "0k80syscmpnj38ks1fq02ds59g0r4jlg9ll7z4qc048mgi35alw5"))))
358 (build-system copy-build-system)
359 (arguments
360 '(#:install-plan
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")
370 (description
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))))
380
381 (define-public vim-scheme
382 (let ((commit "e22fc8e199ef52f2efacd08e71c3add90d83b375")
383 (revision "3"))
384 (package
385 (name "vim-scheme")
386 (version (git-version "0.0.0" revision commit))
387 (source
388 (origin
389 (method git-fetch)
390 (uri (git-reference
391 (url "https://git.foldling.org/vim-scheme.git")
392 (commit commit)))
393 (file-name (git-file-name name version))
394 (sha256
395 (base32
396 "04h946vr4f8wxap3wzqs69y2v8n50g2zbk22jsg2kxr4c01z5cbw"))))
397 (build-system copy-build-system)
398 (arguments
399 '(#:install-plan
400 '(("ftplugin" "share/vim/vimfiles/")
401 ("indent" "share/vim/vimfiles/")
402 ("syntax" "share/vim/vimfiles/"))))
403 (synopsis "Scheme syntax for Vim")
404 (description
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))))
408
409 (define-public vim-luna
410 (let ((commit "633619953dcf8577168e255230f96b05f28d6371")
411 (revision "1"))
412 (package
413 (name "vim-luna")
414 (version (string-append "0.0.0-" revision "." (string-take commit 7)))
415 (source
416 (origin
417 (method git-fetch)
418 (uri (git-reference
419 (url "https://github.com/notpratheek/vim-luna")
420 (commit commit)))
421 (file-name (string-append name "-" version "-checkout"))
422 (sha256
423 (base32
424 "0ka3qbhsh8lix1vyj4678j7dnchkd8khhirrnn3aylxxf8fpqyg8"))))
425 (build-system copy-build-system)
426 (arguments
427 '(#:install-plan
428 '(("colors" "share/vim/vimfiles/"))))
429 (synopsis "Dark color theme for Vim")
430 (description
431 "@code{vim-luna} is a dark color theme for Vim.")
432 (home-page "https://github.com/notpratheek/vim-luna")
433 (license license:expat))))
434
435 ;; There are no tarball releases.
436 (define-public vim-context-filetype
437 (let ((commit "5e85f8cae26806f391aefe2661791a6de53bcea2")
438 (revision "1"))
439 (package
440 (name "vim-context-filetype")
441 (version (string-append "0.0.0-" revision "." (string-take commit 7)))
442 (source
443 (origin
444 (method git-fetch)
445 (uri (git-reference
446 (url "https://github.com/Shougo/context_filetype.vim")
447 (commit commit)))
448 (file-name (string-append name "-" version "-checkout"))
449 (sha256
450 (base32
451 "0alvrfhmd91zkd9h83s8wvgyq4iakcf6rybsyjd369qbgpcqky89"))))
452 (build-system copy-build-system)
453 (arguments
454 '(#:install-plan
455 '(("doc" "share/vim/vimfiles/")
456 ("autoload" "share/vim/vimfiles/"))))
457 (synopsis "Context filetype library for Vim")
458 (description
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
462
463 (define-public vim-fugitive
464 (package
465 (name "vim-fugitive")
466 (version "3.6")
467 (source
468 (origin
469 (method git-fetch)
470 (uri (git-reference
471 (url "https://github.com/tpope/vim-fugitive")
472 (commit (string-append "v" version))))
473 (file-name (git-file-name name version))
474 (sha256
475 (base32 "17c3wzqkbzbf0nmlxpgk90yyv3d09209fqxqysand8bzb1cbfwzn"))))
476 (build-system copy-build-system)
477 (arguments
478 '(#:install-plan
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
491
492 (define-public vim-airline
493 (package
494 (name "vim-airline")
495 (version "0.11")
496 (source
497 (origin
498 (method git-fetch)
499 (uri (git-reference
500 (url "https://github.com/vim-airline/vim-airline")
501 (commit (string-append "v" version))))
502 (file-name (git-file-name name version))
503 (sha256
504 (base32
505 "1aksmr73648pvyc75pfdz28k2d4ky52rn7xiwcv7lz87q3vqld7k"))))
506 (build-system copy-build-system)
507 (arguments
508 '(#:install-plan
509 '(("autoload" "share/vim/vimfiles/")
510 ("doc" "share/vim/vimfiles/")
511 ("plugin" "share/vim/vimfiles/"))))
512 (synopsis "Statusline for Vim")
513 (description
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)))
519
520 ;; There are no tarball releases.
521 (define-public vim-airline-themes
522 (let ((commit "e6f233231b232b6027cde6aebeeb18d9138e5324")
523 (revision "2"))
524 (package
525 (name "vim-airline-themes")
526 (version (git-version "0.0.0" revision commit))
527 (source
528 (origin
529 (method git-fetch)
530 (uri (git-reference
531 (url "https://github.com/vim-airline/vim-airline-themes")
532 (commit commit)))
533 (file-name (git-file-name name version))
534 (sha256
535 (base32
536 "1sb7nb7j7bz0pv1c9bgdy0smhr0jk2b1vbdv9yzghg5lrknpsbr6"))))
537 (build-system copy-build-system)
538 (arguments
539 '(#:install-plan
540 '(("autoload" "share/vim/vimfiles/")
541 ("doc" "share/vim/vimfiles/")
542 ("plugin" "share/vim/vimfiles/"))))
543 (synopsis "Collection of themes for Vim-airline")
544 (description
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))))
548
549 (define-public vim-syntastic
550 (package
551 (name "vim-syntastic")
552 (version "3.10.0")
553 (source
554 (origin
555 (method git-fetch)
556 (uri (git-reference
557 (url "https://github.com/vim-syntastic/syntastic")
558 (commit version)))
559 (file-name (git-file-name name version))
560 (sha256
561 (base32 "0j91f72jaz1s6aw1hpjiz30vk2ds2aqd9gisk91grsldy6nz6hhz"))))
562 (build-system copy-build-system)
563 (arguments
564 '(#:install-plan
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")
570 (description
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)))
577
578 (define-public vim-solarized
579 (let ((commit "62f656a02f93c5190a8753159e34b385588d5ff3")
580 (revision "1"))
581 (package
582 (name "vim-solarized")
583 (version (git-version "1.0.0beta1" revision commit))
584 (source
585 (origin
586 (method git-fetch)
587 (uri (git-reference
588 (url "https://github.com/altercation/solarized")
589 (commit commit)))
590 (file-name (git-file-name name version))
591 (sha256
592 (base32 "0001mz5v3a8zvi3gzmxhi3yrsb6hs7qf6i497arsngnvj2cwn61d"))))
593 (build-system copy-build-system)
594 (arguments
595 '(#:install-plan
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")
600 (description
601 "This package provides the Solarized theme as a Vim color scheme.
602
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.
606
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.
610
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))))
614
615 (define-public editorconfig-vim
616 (package
617 (name "editorconfig-vim")
618 (version "1.1.1")
619 (source
620 (origin
621 (method git-fetch)
622 (uri (git-reference
623 (url "https://github.com/editorconfig/editorconfig-vim")
624 (commit (string-append "v" version))))
625 (file-name (git-file-name name version))
626 (sha256
627 (base32
628 "0mp80bi2m56bb93szw87vy6q5s85yk9g91sl4pr51316rgdv5kkv"))))
629 (build-system copy-build-system)
630 (arguments
631 '(#:install-plan
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
641 editors.")
642 (license license:bsd-2)))
643
644 (define-public neovim-syntastic
645 (package
646 (inherit vim-syntastic)
647 (name "neovim-syntastic")
648 (arguments
649 '(#:install-plan
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")
655 (description
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.")))
660
661 (define-public neovim
662 (package
663 (name "neovim")
664 (version "0.4.4")
665 (source
666 (origin
667 (method git-fetch)
668 (uri (git-reference
669 (url "https://github.com/neovim/neovim")
670 (commit (string-append "v" version))))
671 (file-name (git-file-name name version))
672 (sha256
673 (base32 "11zyj6jvkwas3n6w1ckj3pk6jf81z1g7ngg4smmwm7c27y2a6f2m"))))
674 (build-system cmake-build-system)
675 (arguments
676 `(#:modules ((srfi srfi-26)
677 (guix build cmake-build-system)
678 (guix build utils))
679 #:configure-flags '("-DPREFER_LUA:BOOL=YES")
680 #:phases
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")
685 (lua-cpath-spec
686 (lambda (prefix)
687 (let ((path (string-append prefix "/lib/lua/" lua-version)))
688 (string-append path "/?.so;" path "/?/?.so"))))
689 (lua-path-spec
690 (lambda (prefix)
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 <>)
694 '("lua"
695 "lua-luv"
696 "lua-lpeg"
697 "lua-bitop"
698 "lua-libmpack"))))
699 (setenv "LUA_PATH"
700 (string-join (map lua-path-spec lua-inputs) ";"))
701 (setenv "LUA_CPATH"
702 (string-join (map lua-cpath-spec lua-inputs) ";"))
703 #t)))
704 (add-after 'unpack 'prevent-embedding-gcc-store-path
705 (lambda _
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"))
711 #t)))))
712 (inputs
713 `(("libuv" ,libuv)
714 ("msgpack" ,msgpack)
715 ("libtermkey" ,libtermkey)
716 ("libvterm" ,libvterm)
717 ("unibilium" ,unibilium)
718 ("jemalloc" ,jemalloc)
719 ("libiconv" ,libiconv)
720 ("lua" ,lua-5.1)
721 ("lua-luv" ,lua5.1-luv)
722 ("lua-lpeg" ,lua5.1-lpeg)
723 ("lua-bitop" ,lua5.1-bitop)
724 ("lua-libmpack" ,lua5.1-libmpack)))
725 (native-inputs
726 `(("pkg-config" ,pkg-config)
727 ("gettext" ,gettext-minimal)
728 ("gperf" ,gperf)))
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:
733
734 @itemize
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
739 @end itemize\n")
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))))
743
744 (define-public eovim
745 (package
746 (name "eovim")
747 (version "0.2.0")
748 (source
749 (origin
750 (method git-fetch)
751 (uri (git-reference
752 (url "https://github.com/jeanguyomarch/eovim/")
753 (commit (string-append "v" version))))
754 (file-name (git-file-name name version))
755 (sha256
756 (base32 "06b7crmz3wvvq15ncl0jk20s8j1pmna2jin0k5y5n5qxpafbgp3k"))))
757 (build-system cmake-build-system)
758 (arguments
759 '(#:tests? #false ;no tests
760 #:phases
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"))))))
772 (native-inputs
773 (list pkg-config))
774 (inputs
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)))
782
783 (define-public vifm
784 (package
785 (name "vifm")
786 (version "0.12")
787 (source
788 (origin
789 (method url-fetch)
790 (uri (list
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")))
795 (sha256
796 (base32
797 "1h5j4y704nciyzg3aaav8sl3r5h9mpwq8f28cj65nnxk6a7n3a9k"))))
798 (build-system gnu-build-system)
799 (arguments
800 '(#:configure-flags '("--disable-build-timestamp")
801 #:phases
802 (modify-phases %standard-phases
803 (add-after 'patch-source-shebangs 'patch-test-shebangs
804 (lambda _
805 (substitute* (cons* "src/background.c"
806 "src/cfg/config.c"
807 (find-files "tests" "\\.c$"))
808 (("/bin/sh") (which "sh"))
809 (("/bin/bash") (which "bash")))
810 ;; This test segfaults
811 (substitute* "tests/Makefile"
812 (("misc") ""))
813 #t))
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")
822 vimfiles)
823 (delete-file-recursively (string-append vifm "/colors"))
824 (delete-file-recursively (string-append vifm "/vim")))
825 #t)))))
826 (native-inputs
827 (list groff)) ; for the documentation
828 (inputs
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:
837 @enumerate
838 @item utf8 support
839 @item user mappings (almost like in @code{vi})
840 @item ranges in command
841 @item line commands
842 @item user defined commands (with support for ranges)
843 @item registers
844 @item operation undoing/redoing
845 @item fuse file systems support
846 @item trash
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
852 @item bookmarks
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
858 @end enumerate
859 With the package comes a plugin to use vifm as a vim file selector.")
860 (license license:gpl2+)))
861
862 (define-public python-pynvim
863 (package
864 (name "python-pynvim")
865 (version "0.4.2")
866 (source (origin
867 (method url-fetch)
868 (uri (pypi-uri "pynvim" version))
869 (sha256
870 (base32
871 "13qgwkqbx012j5spis1aw8rb120rw0zphgjy1j58irax8r6j1ikb"))))
872 (build-system python-build-system)
873 (propagated-inputs
874 (list python-greenlet python-msgpack))
875 (arguments
876 `(#:tests? #f))
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)))
883
884 (define-public vim-guix-vim
885 (package
886 (name "vim-guix-vim")
887 (version "0.3.1")
888 (source (origin
889 (method git-fetch)
890 (uri (git-reference
891 (url "https://gitlab.com/Efraim/guix.vim")
892 (commit version)))
893 (file-name (git-file-name name version))
894 (sha256
895 (base32
896 "080ni4z23qdr8rkrswjqfqfrrcnpn7qdgrg14glwji46wzvwxqyx"))))
897 (build-system copy-build-system)
898 (arguments
899 '(#:install-plan
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)))
912
913 (define-public vim-asyncrun
914 (package
915 (name "vim-asyncrun")
916 (version "2.8.6")
917 (source (origin
918 (method git-fetch)
919 (uri (git-reference
920 (url "https://github.com/skywind3000/asyncrun.vim")
921 (commit version)))
922 (file-name (git-file-name name version))
923 (sha256
924 (base32
925 "11zcw0sll6qg6ha0rr6n1cw5v73azvf7ycwn9lgiwa5cj7rrqjf4"))))
926 (build-system copy-build-system)
927 (arguments
928 '(#:install-plan
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)))
937
938 (define-public vim-dispatch
939 (package
940 (name "vim-dispatch")
941 (version "1.8")
942 (source
943 (origin
944 (method git-fetch)
945 (uri (git-reference
946 (url "https://github.com/tpope/vim-dispatch")
947 (commit (string-append "v" version))))
948 (file-name (git-file-name name version))
949 (sha256
950 (base32
951 "1m8b5mn2zqlphzs6xfwykwmghf6p0wabrhpjmh7vav35jgcxc4wl"))))
952 (build-system copy-build-system)
953 (arguments
954 '(#:install-plan
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)))
965
966 (define-public vim-gemini-vim
967 ;; No releases have been tagged.
968 (let ((commit "f300c54174fc0db8fb68f1bc04307b58612e9630")
969 (revision "1"))
970 (package
971 (name "vim-gemini-vim")
972 (version (git-version "0.0.0" revision commit))
973 (source
974 (origin
975 (method git-fetch)
976 (uri (git-reference
977 (url "https://git.sr.ht/~torresjrjr/gemini.vim")
978 (commit commit)))
979 (file-name (git-file-name name version))
980 (sha256
981 (base32 "05ffhhfahjqwxyrqmsinsahrs15wknzl2qbj8mznyv319mn2civ2"))))
982 (build-system copy-build-system)
983 (arguments
984 `(#:install-plan
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
991 specification.")
992 (license license:gpl3))))
993
994 (define-public vim-eunuch
995 (let ((commit "33e875b31c8b811a0a47908884a5e2339106bbe8")
996 (revision "1"))
997 (package
998 (name "vim-eunuch")
999 (version (git-version "1.2" revision commit))
1000 (source
1001 (origin
1002 (method git-fetch)
1003 (uri (git-reference
1004 (url "https://github.com/tpope/vim-eunuch")
1005 (commit commit)))
1006 (file-name (git-file-name name version))
1007 (sha256
1008 (base32
1009 "1xadb22kd40swmww0qxmmkcpcq6viy8l167pjck5q32hfngll5d3"))))
1010 (build-system copy-build-system)
1011 (arguments
1012 '(#:install-plan
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))))
1021
1022 (define-public vim-slime
1023 ;; No tagged releases.
1024 (let ((commit "a522fed677e50175f52efc5848cc35209af33216")
1025 (revision "1"))
1026 (package
1027 (name "vim-slime")
1028 (version (git-version "0.0.0" revision commit))
1029 (source
1030 (origin
1031 (method git-fetch)
1032 (uri (git-reference
1033 (url "https://github.com/jpalardy/vim-slime")
1034 (commit commit)))
1035 (file-name (git-file-name name version))
1036 (sha256
1037 (base32 "0k4b629jn6xlxyjxdl3cgm06v9dmx967rqnslv5m82c9kscwpyh4"))))
1038 (build-system copy-build-system)
1039 (arguments
1040 `(#:install-plan
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
1051 to Lisp.")
1052 (license license:expat))))
1053
1054 (define-public vim-paredit
1055 ;; The last tagged version is from August 2013.
1056 (let ((commit "97d51d099523b37bb35cbcf3564cbfb46e66e4ec")
1057 (revision "1"))
1058 (package
1059 (name "vim-paredit")
1060 (version (git-version "0.9.11" revision commit))
1061 (source
1062 (origin
1063 (method git-fetch)
1064 (uri (git-reference
1065 (url "https://github.com/kovisoft/paredit")
1066 (commit commit)))
1067 (file-name (git-file-name name version))
1068 (sha256
1069 (base32 "07d5s20r0ssd7rir45vy0fqlci44gha1a81rcilgar227f3nw328"))))
1070 (build-system copy-build-system)
1071 (arguments
1072 '(#:install-plan
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")
1077 (description
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))))
1082
1083 (define-public vim-surround
1084 (package
1085 (name "vim-surround")
1086 (version "2.2")
1087 (source
1088 (origin
1089 (method git-fetch)
1090 (uri (git-reference
1091 (url "https://github.com/tpope/vim-surround")
1092 (commit (string-append "v" version))))
1093 (file-name (git-file-name name version))
1094 (sha256
1095 (base32 "1b0bd5m5lv1p4d299mrwjfs2gk0zqwyaqdaid9hs9yqlxnr8s5nf"))))
1096 (build-system copy-build-system)
1097 (arguments
1098 '(#:install-plan
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")
1103 (description
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)))
1108
1109 (define-public vim-gnupg
1110 (package
1111 (name "vim-gnupg")
1112 (version "2.7.1")
1113 (source
1114 (origin
1115 (method url-fetch)
1116 (uri (string-append "https://github.com/jamessan/vim-gnupg/releases/"
1117 "download/v" version
1118 "/vim-gnupg-v" version ".tar.gz"))
1119 (sha256
1120 (base32 "02w8lgyyh7wgxysvmmcf9ja5c06vrbyh3alzvv97x8cfhrp0skn7"))))
1121 (build-system copy-build-system)
1122 (arguments
1123 '(#:install-plan
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")
1129 (description
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.")
1135 (properties
1136 '((release-monitoring-url . "https://github.com/jamessan/vim-gnupg/releases")))
1137 (license license:gpl2+)))
1138
1139 (define-public vim-ctrlp
1140 (package
1141 (name "vim-ctrlp")
1142 (version "1.81")
1143 (source
1144 (origin
1145 (method git-fetch)
1146 (uri (git-reference
1147 (url "https://github.com/ctrlpvim/ctrlp.vim")
1148 (commit version)))
1149 (file-name (git-file-name name version))
1150 (sha256
1151 (base32 "0n68hg59h4rjn0ziqbsh5pr03l3kr98zk54659ny6vq107af1w96"))))
1152 (build-system copy-build-system)
1153 (arguments
1154 '(#:install-plan
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")
1160 (description
1161 "CtrlP features:
1162 @itemize
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
1170 anything).
1171 @item Optional cross-session caching and history allow for fast initialization.
1172 @item Mappings and usage conform to Vim's conventions.
1173 @end itemize")
1174 (license license:vim)))
1175
1176 (define-public vim-mucomplete
1177 (package
1178 (name "vim-mucomplete")
1179 (version "1.5.0")
1180 (source
1181 (origin
1182 (method git-fetch)
1183 (uri (git-reference
1184 (url "https://github.com/lifepillar/vim-mucomplete")
1185 (commit (string-append "v" version))))
1186 (file-name (git-file-name name version))
1187 (sha256
1188 (base32 "054g80n09mmxxlh8xaic29bn8bgn3clvv732rymljdyvbj1mlhwd"))))
1189 (build-system copy-build-system)
1190 (arguments
1191 '(#:install-plan
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")
1197 (description
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)))
1202
1203 (define-public vim-gitgutter
1204 (let ((commit "256702dd1432894b3607d3de6cd660863b331818")
1205 (revision "1"))
1206 (package
1207 (name "vim-gitgutter")
1208 (version (git-version "0.0.0" revision commit))
1209 (source
1210 (origin
1211 (method git-fetch)
1212 (uri (git-reference
1213 (url "https://github.com/airblade/vim-gitgutter")
1214 (commit commit)))
1215 (file-name (git-file-name name version))
1216 (sha256
1217 (base32 "0zpa7cs59a8sq0k3frlf9flpf30jcn239yrpmv40r7nqvxzglbpl"))))
1218 (build-system copy-build-system)
1219 (arguments
1220 '(#:install-plan
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")
1225 (description
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
1230 buffer.")
1231 (home-page "https://github.com/airblade/vim-gitgutter")
1232 (license license:expat))))
1233
1234 (define-public vim-characterize
1235 (package
1236 (name "vim-characterize")
1237 (version "1.1")
1238 (source
1239 (origin
1240 (method git-fetch)
1241 (uri (git-reference
1242 (url "https://github.com/tpope/vim-characterize")
1243 (commit (string-append "v" version))))
1244 (file-name (git-file-name name version))
1245 (sha256
1246 (base32 "0ppsbsd696ih40d9f76mdl9sd9y7p2pvm65qmvq4b2zhkv4xbpxz"))))
1247 (build-system copy-build-system)
1248 (arguments
1249 '(#:install-plan
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")
1255 (description
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
1258 additions:
1259 @itemize
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{&copy;}
1265 @end itemize")
1266 (license license:vim)))
1267
1268 (define-public vim-tagbar
1269 (package
1270 (name "vim-tagbar")
1271 (version "3.0.0")
1272 (source
1273 (origin
1274 (method git-fetch)
1275 (uri (git-reference
1276 (url "https://github.com/preservim/tagbar")
1277 (commit (string-append "v" version))))
1278 (file-name (git-file-name name version))
1279 (sha256
1280 (base32 "1fqfs8msmr6d4kpvxqp14sdjvp5fj52q5w5kz71myzcd4kqzmirp"))))
1281 (build-system copy-build-system)
1282 (arguments
1283 '(#:install-plan
1284 '(("autoload" "share/vim/vimfiles/")
1285 ("doc" "share/vim/vimfiles/")
1286 ("plugin" "share/vim/vimfiles/")
1287 ("syntax" "share/vim/vimfiles/"))
1288 #:phases
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']")))))))))
1297 (inputs
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")
1301 (description
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)))
1308
1309 (define-public vim-nerdtree
1310 (package
1311 (name "vim-nerdtree")
1312 (version "6.10.16")
1313 (source
1314 (origin
1315 (method git-fetch)
1316 (uri (git-reference
1317 (url "https://github.com/preservim/nerdtree")
1318 (commit version)))
1319 (file-name (git-file-name name version))
1320 (sha256
1321 (base32 "1si8qla86ng8cffbmfrk9gss0i3912yw0f1ph4bsiq0kk837lccp"))))
1322 (build-system copy-build-system)
1323 (arguments
1324 '(#:install-plan
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")
1333 (description
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)))
1338
1339 (define-public vim-nerdcommenter
1340 (let ((commit "a65465d321f2f8a74b2ffa540b9b87563f7e12e8")
1341 (revision "1"))
1342 (package
1343 (name "vim-nerdcommenter")
1344 (version (git-version "2.5.2" revision commit))
1345 (source
1346 (origin
1347 (method git-fetch)
1348 (uri (git-reference
1349 (url "https://github.com/preservim/nerdcommenter")
1350 (commit commit)))
1351 (file-name (git-file-name name version))
1352 (sha256
1353 (base32 "00ir65iv8jfbgzjmj7332fmydh0qhabbhx8zbvd3j6pgfxqpaafw"))))
1354 (build-system copy-build-system)
1355 (arguments
1356 '(#:install-plan
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")
1362 (description
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))))