gnu: vim: Update to 9.0.0000.
[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 ;;; Copyright © 2022 Luis Henrique Gomes Higino <luishenriquegh2701@gmail.com>
16 ;;;
17 ;;; This file is part of GNU Guix.
18 ;;;
19 ;;; GNU Guix is free software; you can redistribute it and/or modify it
20 ;;; under the terms of the GNU General Public License as published by
21 ;;; the Free Software Foundation; either version 3 of the License, or (at
22 ;;; your option) any later version.
23 ;;;
24 ;;; GNU Guix is distributed in the hope that it will be useful, but
25 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
26 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 ;;; GNU General Public License for more details.
28 ;;;
29 ;;; You should have received a copy of the GNU General Public License
30 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
31
32 (define-module (gnu packages vim)
33 #:use-module ((guix licenses) #:prefix license:)
34 #:use-module (guix packages)
35 #:use-module (guix gexp)
36 #:use-module (guix utils)
37 #:use-module (guix download)
38 #:use-module (guix git-download)
39 #:use-module (guix build-system cmake)
40 #:use-module (guix build-system copy)
41 #:use-module (guix build-system gnu)
42 #:use-module (guix build-system python)
43 #:use-module (gnu packages)
44 #:use-module (gnu packages acl)
45 #:use-module (gnu packages admin) ; For GNU hostname
46 #:use-module (gnu packages attr)
47 #:use-module (gnu packages autotools)
48 #:use-module (gnu packages base)
49 #:use-module (gnu packages code)
50 #:use-module (gnu packages enlightenment)
51 #:use-module (gnu packages fontutils)
52 #:use-module (gnu packages gawk)
53 #:use-module (gnu packages gettext)
54 #:use-module (gnu packages glib)
55 #:use-module (gnu packages gperf)
56 #:use-module (gnu packages groff)
57 #:use-module (gnu packages gtk)
58 #:use-module (gnu packages image)
59 #:use-module (gnu packages jemalloc)
60 #:use-module (gnu packages libevent)
61 #:use-module (gnu packages linux)
62 #:use-module (gnu packages lua)
63 #:use-module (gnu packages ncurses)
64 #:use-module (gnu packages perl)
65 #:use-module (gnu packages pkg-config)
66 #:use-module (gnu packages python)
67 #:use-module (gnu packages python-xyz)
68 #:use-module (gnu packages ruby)
69 #:use-module (gnu packages serialization)
70 #:use-module (gnu packages shells)
71 #:use-module (gnu packages tcl)
72 #:use-module (gnu packages text-editors)
73 #:use-module (gnu packages terminals)
74 #:use-module (gnu packages xdisorg)
75 #:use-module (gnu packages xorg))
76
77 (define-public vim
78 (package
79 (name "vim")
80 (version "9.0.0000")
81 (source (origin
82 (method git-fetch)
83 (uri (git-reference
84 (url "https://github.com/vim/vim")
85 (commit (string-append "v" version))))
86 (file-name (git-file-name name version))
87 (sha256
88 (base32
89 "0zzhpkcx0gi2hngwvp0w8c4f289fzxvdc4955spkb9f1f3119pwb"))))
90 (build-system gnu-build-system)
91 (arguments
92 `(#:test-target "test"
93 #:parallel-tests? #f
94 #:phases
95 (modify-phases %standard-phases
96 (add-after 'configure 'patch-absolute-paths
97 (lambda _
98 (substitute* '("runtime/autoload/context.vim"
99 "src/testdir/Makefile"
100 "src/testdir/test_filetype.vim"
101 "src/testdir/test_normal.vim"
102 "src/testdir/test_popupwin.vim"
103 "src/testdir/test_prompt_buffer.vim"
104 "src/testdir/test_shell.vim"
105 "src/testdir/test_suspend.vim"
106 "src/testdir/test_terminal.vim"
107 "src/testdir/test_terminal2.vim")
108 (("/bin/sh") (which "sh")))
109 (substitute* "src/testdir/test_autocmd.vim"
110 (("/bin/kill") (which "kill")))))
111 (add-before 'check 'set-environment-variables
112 (lambda* (#:key inputs #:allow-other-keys)
113 ;; One of the tests tests timezone-dependent functions.
114 (setenv "TZDIR"
115 (search-input-directory inputs "share/zoneinfo"))
116
117 ;; Make sure the TERM environment variable is set for the tests
118 (setenv "TERM" "xterm")))
119 (add-before 'check 'skip-or-fix-failing-tests
120 (lambda _
121 ;; This test failure is shared between BSD and Guix.
122 (with-fluids ((%default-port-encoding #f))
123 (substitute* "src/testdir/test_writefile.vim"
124 (("!has\\('bsd'\\)") "0")))
125
126 ;; These tests check how the terminal looks after executing some
127 ;; actions. The path of the bash binary is shown, which results in
128 ;; a difference being detected. Patching the expected result is
129 ;; non-trivial due to the special format used, so skip the test.
130 (substitute* "src/testdir/test_terminal.vim"
131 ((".*Test_open_term_from_cmd.*" line)
132 (string-append line "return\n"))
133 ((".*Test_terminal_postponed_scrollback.*" line)
134 (string-append line "return\n"))
135 ((".*Test_combining_double_width.*" line)
136 (string-append line "return\n")))
137 (substitute* "src/testdir/test_popupwin.vim"
138 ((".*Test_popup_drag_termwin.*" line)
139 (string-append line "return\n")))))
140 (add-before 'install 'fix-installman.sh
141 (lambda _
142 (substitute* "src/installman.sh"
143 (("/bin/sh")
144 (which "sh")))))
145 (add-after 'install 'install-guix.vim
146 (lambda* (#:key inputs outputs #:allow-other-keys)
147 (let ((vimdir (string-append (assoc-ref outputs "out") "/share/vim")))
148 (mkdir-p vimdir)
149 (copy-file (assoc-ref inputs "guix.vim")
150 (string-append vimdir "/vimrc"))))))))
151 (inputs
152 (list gawk ncurses perl tcsh)) ; For runtime/tools/vim32
153 (native-inputs
154 `(("libtool" ,libtool)
155 ("guix.vim" ,(search-auxiliary-file "guix.vim"))
156
157 ;; For tests.
158 ("tzdata" ,tzdata-for-tests)))
159 (home-page "https://www.vim.org/")
160 (synopsis "Text editor based on vi")
161 ;; The description shares language with the vim-full package. When making
162 ;; changes, check if the other description also needs to be updated.
163 (description
164 "Vim is a highly configurable text editor built to enable efficient text
165 editing. It is an improved version of the vi editor distributed with most UNIX
166 systems.
167
168 Vim is often called a \"programmer's editor,\" and so useful for programming
169 that many consider it an entire IDE. It's not just for programmers, though.
170 Vim is perfect for all kinds of text editing, from composing email to editing
171 configuration files.")
172 (license license:vim)))
173
174 (define-public xxd
175 (package (inherit vim)
176 (name "xxd")
177 (arguments
178 (list
179 #:make-flags #~(list (string-append "CC=" #$(cc-for-target)))
180 #:tests? #f ; there are none
181 #:phases
182 #~(modify-phases %standard-phases
183 (delete 'configure)
184 (add-after 'unpack 'chdir
185 (lambda _
186 (chdir "src/xxd")))
187 (replace 'install
188 (lambda* (#:key outputs #:allow-other-keys)
189 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
190 (install-file "xxd" bin)))))))
191 (inputs `())
192 (native-inputs `())
193 (synopsis "Hexdump utility from vim")
194 (description "This package provides the Hexdump utility xxd that comes
195 with the editor vim.")))
196
197 (define-public vim-full
198 (package
199 (inherit vim)
200 (name "vim-full")
201 (arguments
202 `(#:configure-flags
203 (list (string-append "--with-lua-prefix="
204 (assoc-ref %build-inputs "lua"))
205 "--with-features=huge"
206 "--enable-python3interp=yes"
207 "--enable-perlinterp=yes"
208 "--enable-rubyinterp=yes"
209 "--enable-tclinterp=yes"
210 "--enable-luainterp=yes"
211 "--enable-cscope"
212 "--enable-sniff"
213 "--enable-multibyte"
214 "--enable-xim"
215 "--disable-selinux"
216 "--enable-gui")
217 ,@(substitute-keyword-arguments (package-arguments vim)
218 ;; This flag fixes the following error:
219 ;; .../libpython3.7m.a(pyexpat.o): undefined reference to symbol 'XML_FreeContentModel'
220 ;; .../libexpat.so.1: error adding symbols: DSO missing from command line
221 ((#:make-flags flags)
222 `(append
223 (list "LDFLAGS=-lexpat")
224 ,flags))
225 ((#:phases phases)
226 `(modify-phases ,phases
227 (add-before 'check 'start-xserver
228 (lambda* (#:key inputs #:allow-other-keys)
229 ;; Some tests require an X server, but does not start one.
230 (let ((xorg-server (assoc-ref inputs "xorg-server"))
231 (display ":1"))
232 (setenv "DISPLAY" display)
233 (zero? (system (string-append xorg-server "/bin/Xvfb "
234 display " &")))))))))))
235 (native-inputs
236 (modify-inputs (package-native-inputs vim)
237 (prepend pkg-config xorg-server-for-tests)))
238 (inputs
239 `(("acl" ,acl)
240 ("atk" ,atk)
241 ("attr" ,attr)
242 ("cairo" ,cairo)
243 ("fontconfig" ,fontconfig)
244 ("freetype" ,freetype)
245 ("gdk-pixbuf" ,gdk-pixbuf)
246 ("gettext" ,gettext-minimal)
247 ("glib" ,glib)
248 ("gpm" ,gpm)
249 ("gtk" ,gtk+-2)
250 ("harfbuzz" ,harfbuzz)
251 ("libice" ,libice)
252 ("libpng" ,libpng)
253 ("libsm" ,libsm)
254 ("libx11" ,libx11)
255 ("libxdmcp" ,libxdmcp)
256 ("libxt" ,libxt)
257 ("libxpm" ,libxpm)
258 ("lua" ,lua)
259 ("pango" ,pango)
260 ("pixman" ,pixman)
261 ("python-3" ,python)
262 ("ruby" ,ruby)
263 ("tcl" ,tcl)
264 ,@(package-inputs vim)))
265 ;; The description shares language with the vim package. When making
266 ;; changes, check if the other description also needs to be updated.
267 (description "Vim is a highly configurable text editor built to enable efficient text
268 editing. It is an improved version of the vi editor distributed with most UNIX
269 systems.
270
271 Vim is often called a \"programmer's editor,\" and so useful for programming
272 that many consider it an entire IDE. It's not just for programmers, though.
273 Vim is perfect for all kinds of text editing, from composing email to editing
274 configuration files.
275
276 This package provides a version of Vim with many optional features enabled.
277 It includes a graphical interface, @command{gvim}, and support for plugins
278 written in the Python 3, Perl, Ruby, Tcl, and Lua programming languages.")))
279
280 (define-public vim-neocomplete
281 (package
282 (name "vim-neocomplete")
283 (version "2.1")
284 (source
285 (origin
286 (method git-fetch)
287 (uri (git-reference
288 (url "https://github.com/Shougo/neocomplete.vim")
289 (commit (string-append "ver." version))))
290 (file-name (git-file-name name version))
291 (sha256
292 (base32
293 "1h6sci5mhdfg6sjsjpi8l5li02hg858zcayiwl60y9j2gqnd18lv"))))
294 (build-system copy-build-system)
295 (arguments
296 '(#:install-plan
297 '(("autoload" "share/vim/vimfiles/")
298 ("doc" "share/vim/vimfiles/")
299 ("plugin" "share/vim/vimfiles/"))))
300 (synopsis "Next generation completion framework for Vim")
301 (description
302 "@code{neocomplete}, an abbreviation of 'neo-completion with cache',
303 is a plugin for Vim.
304 It provides keyword completion system by maintaining a cache of keywords in
305 the current buffer. Neocomplete can be customized easily and has many more
306 features than Vim's built-in completion.")
307 (home-page "https://github.com/Shougo/neocomplete.vim/")
308 (license license:expat)))
309
310 ;; There are no release tarballs.
311 (define-public vim-neosnippet-snippets
312 (let ((commit "8e2b1c0cab9ed9a832b3743dbb65e9966a64331a")
313 (revision "1"))
314 (package
315 (name "vim-neosnippet-snippets")
316 (version (string-append "0.0.0-" revision "." (string-take commit 7)))
317 (source
318 (origin
319 (method git-fetch)
320 (uri (git-reference
321 (url "https://github.com/Shougo/neosnippet-snippets")
322 (commit commit)))
323 (file-name (string-append name "-" version "-checkout"))
324 (sha256
325 (base32
326 "151wpvbj6jb9jdkbhj3b77f5sq7y328spvwfbqyj1y32rg4ifmc6"))))
327 (build-system copy-build-system)
328 (arguments
329 '(#:install-plan
330 '(("neosnippets" "share/vim/vimfiles/"))))
331 (synopsis "Snippets for neosnippet")
332 (description
333 "@code{neosnippet-snippets} provides standard snippets for the Vim plugin
334 @code{neosnippet}. Snippets are small templates for commonly used code that
335 you can fill in on the fly.")
336 (home-page "https://github.com/Shougo/neosnippet-snippets")
337 (license license:expat))))
338
339 ;; The released tarball is too old for our Vim.
340 (define-public vim-neosnippet
341 (let ((commit "1bd7e23c79b73da16eb0c9469b25c376d3594583")
342 (revision "1"))
343 (package
344 (name "vim-neosnippet")
345 (version (string-append "4.2-" revision "." (string-take commit 7)))
346 (source
347 (origin
348 (method git-fetch)
349 (uri (git-reference
350 (url "https://github.com/Shougo/neosnippet.vim/")
351 (commit commit)))
352 (file-name (string-append name "-" version "-checkout"))
353 (sha256
354 (base32
355 "0k80syscmpnj38ks1fq02ds59g0r4jlg9ll7z4qc048mgi35alw5"))))
356 (build-system copy-build-system)
357 (arguments
358 '(#:install-plan
359 '(("autoload" "share/vim/vimfiles/")
360 ("doc" "share/vim/vimfiles/")
361 ("ftdetect" "share/vim/vimfiles/")
362 ("ftplugin" "share/vim/vimfiles/")
363 ("indent" "share/vim/vimfiles/")
364 ("plugin" "share/vim/vimfiles/")
365 ("rplugin" "share/vim/vimfiles/")
366 ("syntax" "share/vim/vimfiles/"))))
367 (synopsis "Snippet support for Vim")
368 (description
369 "@code{neosnippet}, is a plugin for Vim which adds snippet support to Vim.
370 Snippets are small templates for commonly used code that you can fill in on
371 the fly. To use snippets can increase your productivity in Vim a lot.
372 The functionality of this plug-in is quite similar to plug-ins like
373 @code{snipMate.vim} or @code{snippetsEmu.vim}. But since you can choose
374 snippets with the neocomplcache / neocomplete interface, you might have less
375 trouble using them, because you do not have to remember each snippet name.")
376 (home-page "https://github.com/Shougo/neosnippet.vim/")
377 (license license:expat))))
378
379 (define-public vim-scheme
380 (let ((commit "e22fc8e199ef52f2efacd08e71c3add90d83b375")
381 (revision "3"))
382 (package
383 (name "vim-scheme")
384 (version (git-version "0.0.0" revision commit))
385 (source
386 (origin
387 (method git-fetch)
388 (uri (git-reference
389 (url "https://git.foldling.org/vim-scheme.git")
390 (commit commit)))
391 (file-name (git-file-name name version))
392 (sha256
393 (base32
394 "04h946vr4f8wxap3wzqs69y2v8n50g2zbk22jsg2kxr4c01z5cbw"))))
395 (build-system copy-build-system)
396 (arguments
397 '(#:install-plan
398 '(("ftplugin" "share/vim/vimfiles/")
399 ("indent" "share/vim/vimfiles/")
400 ("syntax" "share/vim/vimfiles/"))))
401 (synopsis "Scheme syntax for Vim")
402 (description
403 "@code{vim-scheme} provides Scheme support for Vim (R7RS and CHICKEN).")
404 (home-page "https://foldling.org/git/vim-scheme.git/")
405 (license license:unlicense))))
406
407 (define-public vim-luna
408 (let ((commit "633619953dcf8577168e255230f96b05f28d6371")
409 (revision "1"))
410 (package
411 (name "vim-luna")
412 (version (string-append "0.0.0-" revision "." (string-take commit 7)))
413 (source
414 (origin
415 (method git-fetch)
416 (uri (git-reference
417 (url "https://github.com/notpratheek/vim-luna")
418 (commit commit)))
419 (file-name (string-append name "-" version "-checkout"))
420 (sha256
421 (base32
422 "0ka3qbhsh8lix1vyj4678j7dnchkd8khhirrnn3aylxxf8fpqyg8"))))
423 (build-system copy-build-system)
424 (arguments
425 '(#:install-plan
426 '(("colors" "share/vim/vimfiles/"))))
427 (synopsis "Dark color theme for Vim")
428 (description
429 "@code{vim-luna} is a dark color theme for Vim.")
430 (home-page "https://github.com/notpratheek/vim-luna")
431 (license license:expat))))
432
433 ;; There are no tarball releases.
434 (define-public vim-context-filetype
435 (let ((commit "5e85f8cae26806f391aefe2661791a6de53bcea2")
436 (revision "1"))
437 (package
438 (name "vim-context-filetype")
439 (version (string-append "0.0.0-" revision "." (string-take commit 7)))
440 (source
441 (origin
442 (method git-fetch)
443 (uri (git-reference
444 (url "https://github.com/Shougo/context_filetype.vim")
445 (commit commit)))
446 (file-name (string-append name "-" version "-checkout"))
447 (sha256
448 (base32
449 "0alvrfhmd91zkd9h83s8wvgyq4iakcf6rybsyjd369qbgpcqky89"))))
450 (build-system copy-build-system)
451 (arguments
452 '(#:install-plan
453 '(("doc" "share/vim/vimfiles/")
454 ("autoload" "share/vim/vimfiles/"))))
455 (synopsis "Context filetype library for Vim")
456 (description
457 "@code{vim-context-filetype} is context filetype library for Vim script.")
458 (home-page "https://github.com/Shougo/context_filetype.vim")
459 (license license:expat)))) ; ??? check again
460
461 (define-public vim-fugitive
462 (package
463 (name "vim-fugitive")
464 (version "3.7")
465 (source
466 (origin
467 (method git-fetch)
468 (uri (git-reference
469 (url "https://github.com/tpope/vim-fugitive")
470 (commit (string-append "v" version))))
471 (file-name (git-file-name name version))
472 (sha256
473 (base32 "138290g2aph1jjhaza6biky5qi4ka6435s01bwxivllgb53g3irc"))))
474 (build-system copy-build-system)
475 (arguments
476 '(#:install-plan
477 '(("autoload" "share/vim/vimfiles/")
478 ("doc" "share/vim/vimfiles/")
479 ("ftdetect" "share/vim/vimfiles/")
480 ("ftplugin" "share/vim/vimfiles/")
481 ("plugin" "share/vim/vimfiles/")
482 ("syntax" "share/vim/vimfiles/"))))
483 (home-page "https://github.com/tpope/vim-fugitive")
484 (synopsis "Vim plugin to work with Git")
485 (description "Vim-fugitive is a wrapper for Vim that complements the
486 command window, where you can stage and review your changes before the next
487 commit or run any Git arbitrary command.")
488 (license license:vim))) ; distributed under the same license as vim
489
490 (define-public vim-airline
491 (package
492 (name "vim-airline")
493 (version "0.11")
494 (source
495 (origin
496 (method git-fetch)
497 (uri (git-reference
498 (url "https://github.com/vim-airline/vim-airline")
499 (commit (string-append "v" version))))
500 (file-name (git-file-name name version))
501 (sha256
502 (base32
503 "1aksmr73648pvyc75pfdz28k2d4ky52rn7xiwcv7lz87q3vqld7k"))))
504 (build-system copy-build-system)
505 (arguments
506 '(#:install-plan
507 '(("autoload" "share/vim/vimfiles/")
508 ("doc" "share/vim/vimfiles/")
509 ("plugin" "share/vim/vimfiles/"))))
510 (synopsis "Statusline for Vim")
511 (description
512 "@code{vim-airline} is an extensible statusline for Vim.
513 It can be extended and costumized with themes, works with unicode fonts
514 and powerline symbols, etc.")
515 (home-page "https://github.com/vim-airline/vim-airline")
516 (license license:expat)))
517
518 ;; There are no tarball releases.
519 (define-public vim-airline-themes
520 (let ((commit "e6f233231b232b6027cde6aebeeb18d9138e5324")
521 (revision "2"))
522 (package
523 (name "vim-airline-themes")
524 (version (git-version "0.0.0" revision commit))
525 (source
526 (origin
527 (method git-fetch)
528 (uri (git-reference
529 (url "https://github.com/vim-airline/vim-airline-themes")
530 (commit commit)))
531 (file-name (git-file-name name version))
532 (sha256
533 (base32
534 "1sb7nb7j7bz0pv1c9bgdy0smhr0jk2b1vbdv9yzghg5lrknpsbr6"))))
535 (build-system copy-build-system)
536 (arguments
537 '(#:install-plan
538 '(("autoload" "share/vim/vimfiles/")
539 ("doc" "share/vim/vimfiles/")
540 ("plugin" "share/vim/vimfiles/"))))
541 (synopsis "Collection of themes for Vim-airline")
542 (description
543 "@code{vim-airline-themes} is a collection of themes for @code{vim-airline}.")
544 (home-page "https://github.com/vim-airline/vim-airline-themes")
545 (license license:expat))))
546
547 (define-public vim-syntastic
548 (package
549 (name "vim-syntastic")
550 (version "3.10.0")
551 (source
552 (origin
553 (method git-fetch)
554 (uri (git-reference
555 (url "https://github.com/vim-syntastic/syntastic")
556 (commit version)))
557 (file-name (git-file-name name version))
558 (sha256
559 (base32 "0j91f72jaz1s6aw1hpjiz30vk2ds2aqd9gisk91grsldy6nz6hhz"))))
560 (build-system copy-build-system)
561 (arguments
562 '(#:install-plan
563 '(("autoload" "share/vim/vimfiles/")
564 ("doc" "share/vim/vimfiles/")
565 ("plugin" "share/vim/vimfiles/")
566 ("syntax_checkers" "share/vim/vimfiles/"))))
567 (synopsis "Syntax checking plugin for Vim")
568 (description
569 "Vim-syntastic is a syntax checking plugin for Vim. It runs files through
570 external syntax checkers and displays any resulting errors to the user. This
571 can be done on demand, or automatically as files are saved. If syntax errors
572 are detected, the user is notified.")
573 (home-page "https://github.com/vim-syntastic/syntastic")
574 (license license:wtfpl2)))
575
576 (define-public vim-solarized
577 (let ((commit "62f656a02f93c5190a8753159e34b385588d5ff3")
578 (revision "1"))
579 (package
580 (name "vim-solarized")
581 (version (git-version "1.0.0beta1" revision commit))
582 (source
583 (origin
584 (method git-fetch)
585 (uri (git-reference
586 (url "https://github.com/altercation/solarized")
587 (commit commit)))
588 (file-name (git-file-name name version))
589 (sha256
590 (base32 "0001mz5v3a8zvi3gzmxhi3yrsb6hs7qf6i497arsngnvj2cwn61d"))))
591 (build-system copy-build-system)
592 (arguments
593 '(#:install-plan
594 '(("vim-colors-solarized/colors" "share/vim/vimfiles/")
595 ("vim-colors-solarized/doc" "share/vim/vimfiles/"))))
596 (home-page "https://github.com/altercation/vim-colors-solarized")
597 (synopsis "Solarized color scheme for Vim")
598 (description
599 "This package provides the Solarized theme as a Vim color scheme.
600
601 Solarized is a 16-color palette comprising 8 monotones and 8 accent
602 colors. It was designed for use with both terminal and GUI applications, and
603 has a dark and a light mode.
604
605 Based on CIELAB lightness relationships between colors, this theme reduces
606 brightness contrast but retains contrasting hues based on colorwheel relations
607 for syntax highlighting readability.
608
609 It keeps the same selective contrast relationships and overall feel when
610 switching between the light and dark background modes.")
611 (license license:expat))))
612
613 (define-public editorconfig-vim
614 (package
615 (name "editorconfig-vim")
616 (version "1.1.1")
617 (source
618 (origin
619 (method git-fetch)
620 (uri (git-reference
621 (url "https://github.com/editorconfig/editorconfig-vim")
622 (commit (string-append "v" version))))
623 (file-name (git-file-name name version))
624 (sha256
625 (base32
626 "0mp80bi2m56bb93szw87vy6q5s85yk9g91sl4pr51316rgdv5kkv"))))
627 (build-system copy-build-system)
628 (arguments
629 '(#:install-plan
630 '(("autoload" "share/vim/vimfiles/")
631 ("doc" "share/vim/vimfiles/")
632 ("plugin" "share/vim/vimfiles/"))))
633 (home-page "https://editorconfig.org/")
634 (synopsis "EditorConfig plugin for Vim")
635 (description "EditorConfig makes it easy to maintain the correct coding
636 style when switching between different text editors and between different
637 projects. The EditorConfig project maintains a file format and plugins for
638 various text editors which allow this file format to be read and used by those
639 editors.")
640 (license license:bsd-2)))
641
642 (define-public neovim-syntastic
643 (package
644 (inherit vim-syntastic)
645 (name "neovim-syntastic")
646 (arguments
647 '(#:install-plan
648 '(("autoload" "share/nvim/site/")
649 ("doc" "share/nvim/site/")
650 ("plugin" "share/nvim/site/")
651 ("syntax_checkers" "share/nvim/site/"))))
652 (synopsis "Syntax checking plugin for Neovim")
653 (description
654 "Vim-syntastic is a syntax checking plugin for Neovim. It runs files through
655 external syntax checkers and displays any resulting errors to the user. This
656 can be done on demand, or automatically as files are saved. If syntax errors
657 are detected, the user is notified.")))
658
659 (define-public neovim
660 (package
661 (name "neovim")
662 (version "0.7.0")
663 (source (origin
664 (method git-fetch)
665 (uri (git-reference
666 (url "https://github.com/neovim/neovim")
667 (commit (string-append "v" version))))
668 (file-name (git-file-name name version))
669 (sha256
670 (base32
671 "1m7xmry66pn27gvk7qj9di83xa1h7zjp4c6ygnf218pqhr08x06g"))))
672 (build-system cmake-build-system)
673 (arguments
674 (list #:modules
675 '((srfi srfi-26) (guix build cmake-build-system)
676 (guix build utils))
677 #:configure-flags
678 #~(list #$@(if (member (if (%current-target-system)
679 (gnu-triplet->nix-system (%current-target-system))
680 (%current-system))
681 (package-supported-systems luajit))
682 '()
683 '("-DPREFER_LUA:BOOL=YES")))
684 #:phases
685 #~(modify-phases %standard-phases
686 (add-after 'unpack 'set-lua-paths
687 (lambda* _
688 (let* ((lua-version "5.1")
689 (lua-cpath-spec (lambda (prefix)
690 (let ((path (string-append
691 prefix
692 "/lib/lua/"
693 lua-version)))
694 (string-append
695 path
696 "/?.so;"
697 path
698 "/?/?.so"))))
699 (lua-path-spec (lambda (prefix)
700 (let ((path (string-append prefix
701 "/share/lua/"
702 lua-version)))
703 (string-append path "/?.lua;"
704 path "/?/?.lua"))))
705 (lua-inputs (list (or #$(this-package-input "lua")
706 #$(this-package-input "luajit"))
707 #$lua5.1-luv
708 #$lua5.1-lpeg
709 #$lua5.1-bitop
710 #$lua5.1-libmpack)))
711 (setenv "LUA_PATH"
712 (string-join (map lua-path-spec lua-inputs) ";"))
713 (setenv "LUA_CPATH"
714 (string-join (map lua-cpath-spec lua-inputs) ";"))
715 #t)))
716 (add-after 'unpack 'prevent-embedding-gcc-store-path
717 (lambda _
718 ;; nvim remembers its build options, including the compiler with
719 ;; its complete path. This adds gcc to the closure of nvim, which
720 ;; doubles its size. We remove the refirence here.
721 (substitute* "cmake/GetCompileFlags.cmake"
722 (("\\$\\{CMAKE_C_COMPILER\\}") "/gnu/store/.../bin/gcc"))
723 #t)))))
724 (inputs (list libuv-for-luv
725 msgpack
726 libtermkey
727 libvterm
728 unibilium
729 jemalloc
730 (if (member (if (%current-target-system)
731 (gnu-triplet->nix-system (%current-target-system))
732 (%current-system))
733 (package-supported-systems luajit))
734 luajit
735 lua-5.1)
736 lua5.1-luv
737 lua5.1-lpeg
738 lua5.1-bitop
739 lua5.1-libmpack
740 tree-sitter))
741 (native-inputs (list pkg-config gettext-minimal gperf))
742 (home-page "https://neovim.io")
743 (synopsis "Fork of vim focused on extensibility and agility")
744 (description
745 "Neovim is a project that seeks to aggressively
746 refactor Vim in order to:
747
748 @itemize
749 @item Simplify maintenance and encourage contributions
750 @item Split the work between multiple developers
751 @item Enable advanced external UIs without modifications to the core
752 @item Improve extensibility with a new plugin architecture
753 @end itemize
754 ")
755 ;; Neovim is licensed under the terms of the Apache 2.0 license,
756 ;; except for parts that were contributed under the Vim license.
757 (license (list license:asl2.0 license:vim))))
758
759 (define-public eovim
760 (package
761 (name "eovim")
762 (version "0.2.0")
763 (source
764 (origin
765 (method git-fetch)
766 (uri (git-reference
767 (url "https://github.com/jeanguyomarch/eovim/")
768 (commit (string-append "v" version))))
769 (file-name (git-file-name name version))
770 (sha256
771 (base32 "06b7crmz3wvvq15ncl0jk20s8j1pmna2jin0k5y5n5qxpafbgp3k"))))
772 (build-system cmake-build-system)
773 (arguments
774 '(#:tests? #false ;no tests
775 #:phases
776 (modify-phases %standard-phases
777 (add-after 'configure 'reference-nvim
778 (lambda* (#:key inputs #:allow-other-keys)
779 (let ((nvim (search-input-file inputs "/bin/nvim")))
780 ;; This substitution should change one line, and replaces the default
781 ;; value in the struct of options with an absolute store reference.
782 (substitute* "../source/src/main.c"
783 (("(^[[:blank:]]+\\.nvim = \")nvim" _ start)
784 (string-append start nvim))))))
785 (add-before 'build 'set-home
786 (lambda _ (setenv "HOME" "/tmp"))))))
787 (native-inputs
788 (list pkg-config))
789 (inputs
790 (list efl msgpack neovim))
791 (home-page "https://github.com/jeanguyomarch/eovim/")
792 (synopsis "EFL GUI for Neovim")
793 (description "Graphical Neovim interface based on the @acronym{EFL, Enlightenment
794 Foundation Libraries} toolkit. Its features include customizable appearance
795 and support for fonts with ligatures.")
796 (license license:expat)))
797
798 (define-public vifm
799 (package
800 (name "vifm")
801 (version "0.12")
802 (source
803 (origin
804 (method url-fetch)
805 (uri (list
806 (string-append "https://github.com/vifm/vifm/releases/download/v"
807 version "/vifm-" version ".tar.bz2")
808 (string-append "https://sourceforge.net/projects/vifm/files/vifm/"
809 "vifm-" version ".tar.bz2")))
810 (sha256
811 (base32
812 "1h5j4y704nciyzg3aaav8sl3r5h9mpwq8f28cj65nnxk6a7n3a9k"))))
813 (build-system gnu-build-system)
814 (arguments
815 '(#:configure-flags '("--disable-build-timestamp")
816 #:phases
817 (modify-phases %standard-phases
818 (add-after 'patch-source-shebangs 'patch-test-shebangs
819 (lambda _
820 (substitute* (cons* "src/background.c"
821 "src/cfg/config.c"
822 (find-files "tests" "\\.c$"))
823 (("/bin/sh") (which "sh"))
824 (("/bin/bash") (which "bash")))
825 ;; This test segfaults
826 (substitute* "tests/Makefile"
827 (("misc") ""))
828 #t))
829 (add-after 'install 'install-vim-plugin-files
830 (lambda* (#:key outputs #:allow-other-keys)
831 (let* ((out (assoc-ref outputs "out"))
832 (vifm (string-append out "/share/vifm"))
833 (vimfiles (string-append out "/share/vim/vimfiles")))
834 (copy-recursively (string-append vifm "/colors")
835 (string-append vimfiles "/colors"))
836 (copy-recursively (string-append vifm "/vim")
837 vimfiles)
838 (delete-file-recursively (string-append vifm "/colors"))
839 (delete-file-recursively (string-append vifm "/vim")))
840 #t)))))
841 (native-inputs
842 (list groff)) ; for the documentation
843 (inputs
844 (list libx11 ncurses perl))
845 (home-page "https://vifm.info/")
846 (synopsis "Flexible vi-like file manager using ncurses")
847 (description "Vifm is a file manager providing a @command{vi}-like usage
848 experience. It has similar keybindings and modes (e.g. normal, command line,
849 visual). The interface uses ncurses, thus vifm can be used in text-only
850 environments. It supports a wide range of features, some of which are known
851 from the @command{vi}-editor:
852 @enumerate
853 @item utf8 support
854 @item user mappings (almost like in @code{vi})
855 @item ranges in command
856 @item line commands
857 @item user defined commands (with support for ranges)
858 @item registers
859 @item operation undoing/redoing
860 @item fuse file systems support
861 @item trash
862 @item multiple files renaming
863 @item support of filename modifiers
864 @item colorschemes support
865 @item file name color according to file type
866 @item path specific colorscheme customization
867 @item bookmarks
868 @item operation backgrounding
869 @item customizable file viewers
870 @item handy @code{less}-like preview mode
871 @item filtering out and searching for files using regular expressions
872 @item one or two panes view
873 @end enumerate
874 With the package comes a plugin to use vifm as a vim file selector.")
875 (license license:gpl2+)))
876
877 (define-public python-pynvim
878 (package
879 (name "python-pynvim")
880 (version "0.4.2")
881 (source (origin
882 (method url-fetch)
883 (uri (pypi-uri "pynvim" version))
884 (sha256
885 (base32
886 "13qgwkqbx012j5spis1aw8rb120rw0zphgjy1j58irax8r6j1ikb"))))
887 (build-system python-build-system)
888 (propagated-inputs
889 (list python-greenlet python-msgpack))
890 (arguments
891 `(#:tests? #f))
892 (home-page "https://github.com/neovim/pynvim")
893 (synopsis "Python client and plugin host for neovim")
894 (description "Pynvim implements support for python plugins in neovim. It
895 also works as a library for connecting to and scripting neovim processes
896 through its msgpack-rpc API.")
897 (license license:asl2.0)))
898
899 (define-public vim-guix-vim
900 (package
901 (name "vim-guix-vim")
902 (version "0.3.1")
903 (source (origin
904 (method git-fetch)
905 (uri (git-reference
906 (url "https://gitlab.com/Efraim/guix.vim")
907 (commit version)))
908 (file-name (git-file-name name version))
909 (sha256
910 (base32
911 "080ni4z23qdr8rkrswjqfqfrrcnpn7qdgrg14glwji46wzvwxqyx"))))
912 (build-system copy-build-system)
913 (arguments
914 '(#:install-plan
915 '(("autoload" "share/vim/vimfiles/")
916 ("compiler" "share/vim/vimfiles/")
917 ("doc" "share/vim/vimfiles/")
918 ("indent" "share/vim/vimfiles/")
919 ("ftdetect" "share/vim/vimfiles/")
920 ("ftplugin" "share/vim/vimfiles/")
921 ("plugin" "share/vim/vimfiles/")
922 ("syntax" "share/vim/vimfiles/"))))
923 (home-page "https://gitlab.com/Efraim/guix.vim")
924 (synopsis "Guix integration in Vim")
925 (description "This package provides support for GNU Guix in Vim.")
926 (license license:vim)))
927
928 (define-public vim-asyncrun
929 (package
930 (name "vim-asyncrun")
931 (version "2.8.6")
932 (source (origin
933 (method git-fetch)
934 (uri (git-reference
935 (url "https://github.com/skywind3000/asyncrun.vim")
936 (commit version)))
937 (file-name (git-file-name name version))
938 (sha256
939 (base32
940 "11zcw0sll6qg6ha0rr6n1cw5v73azvf7ycwn9lgiwa5cj7rrqjf4"))))
941 (build-system copy-build-system)
942 (arguments
943 '(#:install-plan
944 '(("plugin" "share/vim/vimfiles/")
945 ("doc/" "share/vim/vimfiles/doc" #:include ("asyncrun.txt")))))
946 (home-page "https://github.com/skywind3000/asyncrun.vim")
947 (synopsis "Run Async Shell Commands in Vim")
948 (description "This plugin takes the advantage of new APIs in Vim 8 (and
949 NeoVim) to enable you to run shell commands in background and read output in the
950 quickfix window in realtime.")
951 (license license:expat)))
952
953 (define-public vim-dispatch
954 (package
955 (name "vim-dispatch")
956 (version "1.8")
957 (source
958 (origin
959 (method git-fetch)
960 (uri (git-reference
961 (url "https://github.com/tpope/vim-dispatch")
962 (commit (string-append "v" version))))
963 (file-name (git-file-name name version))
964 (sha256
965 (base32
966 "1m8b5mn2zqlphzs6xfwykwmghf6p0wabrhpjmh7vav35jgcxc4wl"))))
967 (build-system copy-build-system)
968 (arguments
969 '(#:install-plan
970 '(("autoload" "share/vim/vimfiles/")
971 ("doc" "share/vim/vimfiles/")
972 ("plugin" "share/vim/vimfiles/"))))
973 (home-page "https://github.com/tpope/vim-dispatch")
974 (synopsis "Asynchronous build and test dispatcher")
975 (description "Leverage the power of Vim's compiler plugins without being
976 bound by synchronicity. Kick off builds and test suites using one of several
977 asynchronous adapters (including tmux, screen, and a headless mode), and when
978 the job completes, errors will be loaded and parsed automatically.")
979 (license license:vim)))
980
981 (define-public vim-gemini-vim
982 ;; No releases have been tagged.
983 (let ((commit "f300c54174fc0db8fb68f1bc04307b58612e9630")
984 (revision "1"))
985 (package
986 (name "vim-gemini-vim")
987 (version (git-version "0.0.0" revision commit))
988 (source
989 (origin
990 (method git-fetch)
991 (uri (git-reference
992 (url "https://git.sr.ht/~torresjrjr/gemini.vim")
993 (commit commit)))
994 (file-name (git-file-name name version))
995 (sha256
996 (base32 "05ffhhfahjqwxyrqmsinsahrs15wknzl2qbj8mznyv319mn2civ2"))))
997 (build-system copy-build-system)
998 (arguments
999 `(#:install-plan
1000 '(("ftdetect" "share/vim/vimfiles/")
1001 ("syntax" "share/vim/vimfiles/"))))
1002 (home-page "https://git.sr.ht/~torresjrjr/gemini.vim")
1003 (synopsis "Vim syntax highlighting plugin for Gemini")
1004 (description "This Vim plugin provides a Vim syntax highlighting plugin
1005 for Gemini Text, the text/gemini media type, as defined in the Gemini protocol
1006 specification.")
1007 (license license:gpl3))))
1008
1009 (define-public vim-eunuch
1010 (let ((commit "33e875b31c8b811a0a47908884a5e2339106bbe8")
1011 (revision "1"))
1012 (package
1013 (name "vim-eunuch")
1014 (version (git-version "1.2" revision commit))
1015 (source
1016 (origin
1017 (method git-fetch)
1018 (uri (git-reference
1019 (url "https://github.com/tpope/vim-eunuch")
1020 (commit commit)))
1021 (file-name (git-file-name name version))
1022 (sha256
1023 (base32
1024 "1xadb22kd40swmww0qxmmkcpcq6viy8l167pjck5q32hfngll5d3"))))
1025 (build-system copy-build-system)
1026 (arguments
1027 '(#:install-plan
1028 '(("doc" "share/vim/vimfiles/")
1029 ("plugin" "share/vim/vimfiles/"))))
1030 (home-page "https://github.com/tpope/vim-eunuch")
1031 (synopsis "Vim sugar for the UNIX shell commands")
1032 (description "Vim sugar for the UNIX shell commands that need it the most.
1033 This package includes commands such as @code{SudoWrite} and @code{SudoEdit} and
1034 help working on Vim buffers and the files they reference with one command.")
1035 (license license:vim))))
1036
1037 (define-public vim-slime
1038 ;; No tagged releases.
1039 (let ((commit "a522fed677e50175f52efc5848cc35209af33216")
1040 (revision "1"))
1041 (package
1042 (name "vim-slime")
1043 (version (git-version "0.0.0" revision commit))
1044 (source
1045 (origin
1046 (method git-fetch)
1047 (uri (git-reference
1048 (url "https://github.com/jpalardy/vim-slime")
1049 (commit commit)))
1050 (file-name (git-file-name name version))
1051 (sha256
1052 (base32 "0k4b629jn6xlxyjxdl3cgm06v9dmx967rqnslv5m82c9kscwpyh4"))))
1053 (build-system copy-build-system)
1054 (arguments
1055 `(#:install-plan
1056 '(("autoload" "share/vim/vimfiles/")
1057 ("doc" "share/vim/vimfiles/")
1058 ("ftplugin" "share/vim/vimfiles/")
1059 ("plugin" "share/vim/vimfiles/"))))
1060 (home-page "https://technotales.wordpress.com/2007/10/03/like-slime-for-vim/")
1061 (synopsis "Vim plugin to give you some slime")
1062 (description "SLIME is an Emacs plugin to turn Emacs into a Lisp IDE. You
1063 can type text in a file, send it to a live REPL, and avoid having to reload all
1064 your code every time you make a change. @code{Vim-slime} is an attempt at
1065 getting some of these features into Vim. It works with any REPL and isn't tied
1066 to Lisp.")
1067 (license license:expat))))
1068
1069 (define-public vim-paredit
1070 ;; The last tagged version is from August 2013.
1071 (let ((commit "97d51d099523b37bb35cbcf3564cbfb46e66e4ec")
1072 (revision "1"))
1073 (package
1074 (name "vim-paredit")
1075 (version (git-version "0.9.11" revision commit))
1076 (source
1077 (origin
1078 (method git-fetch)
1079 (uri (git-reference
1080 (url "https://github.com/kovisoft/paredit")
1081 (commit commit)))
1082 (file-name (git-file-name name version))
1083 (sha256
1084 (base32 "07d5s20r0ssd7rir45vy0fqlci44gha1a81rcilgar227f3nw328"))))
1085 (build-system copy-build-system)
1086 (arguments
1087 '(#:install-plan
1088 '(("doc" "share/vim/vimfiles/")
1089 ("plugin" "share/vim/vimfiles/"))))
1090 (home-page "https://github.com/kovisoft/paredit")
1091 (synopsis "Vim plugin for structured editing of Lisp S-expressions")
1092 (description
1093 "Paredit performs structured editing of Lisp S-expressions in Vim.
1094 @code{Paredit.vim} is similar to @code{paredit.el} for Emacs.")
1095 ;; License listed in plugin/paredit.vim.
1096 (license license:public-domain))))
1097
1098 (define-public vim-surround
1099 (package
1100 (name "vim-surround")
1101 (version "2.2")
1102 (source
1103 (origin
1104 (method git-fetch)
1105 (uri (git-reference
1106 (url "https://github.com/tpope/vim-surround")
1107 (commit (string-append "v" version))))
1108 (file-name (git-file-name name version))
1109 (sha256
1110 (base32 "1b0bd5m5lv1p4d299mrwjfs2gk0zqwyaqdaid9hs9yqlxnr8s5nf"))))
1111 (build-system copy-build-system)
1112 (arguments
1113 '(#:install-plan
1114 '(("doc" "share/vim/vimfiles/")
1115 ("plugin" "share/vim/vimfiles/"))))
1116 (home-page "https://github.com/tpope/vim-surround")
1117 (synopsis "Vim plugin for easy quoting and parenthesizing")
1118 (description
1119 "Surround.vim is all about \"surroundings\": parentheses, brackets,
1120 quotes, XML tags, and more. The plugin provides mappings to easily delete,
1121 change and add such surroundings in pairs.")
1122 (license license:vim)))
1123
1124 (define-public vim-gnupg
1125 (package
1126 (name "vim-gnupg")
1127 (version "2.7.1")
1128 (source
1129 (origin
1130 (method url-fetch)
1131 (uri (string-append "https://github.com/jamessan/vim-gnupg/releases/"
1132 "download/v" version
1133 "/vim-gnupg-v" version ".tar.gz"))
1134 (sha256
1135 (base32 "02w8lgyyh7wgxysvmmcf9ja5c06vrbyh3alzvv97x8cfhrp0skn7"))))
1136 (build-system copy-build-system)
1137 (arguments
1138 '(#:install-plan
1139 '(("autoload" "share/vim/vimfiles/")
1140 ("doc" "share/vim/vimfiles/")
1141 ("plugin" "share/vim/vimfiles/"))))
1142 (home-page "https://www.vim.org/scripts/script.php?script_id=3645")
1143 (synopsis "Vim plugin for transparent editing of gpg encrypted files")
1144 (description
1145 "This script implements transparent editing of gpg encrypted files. The
1146 filename must have a @code{.gpg}, @code{.pgp} or @code{.asc} suffix. When
1147 opening such a file the content is decrypted, and the content will be encrypted
1148 to all recipients before it is written. This script turns off viminfo,
1149 swapfile, and undofile when editing encrypted files to increase security.")
1150 (properties
1151 '((release-monitoring-url . "https://github.com/jamessan/vim-gnupg/releases")))
1152 (license license:gpl2+)))
1153
1154 (define-public vim-ctrlp
1155 (package
1156 (name "vim-ctrlp")
1157 (version "1.81")
1158 (source
1159 (origin
1160 (method git-fetch)
1161 (uri (git-reference
1162 (url "https://github.com/ctrlpvim/ctrlp.vim")
1163 (commit version)))
1164 (file-name (git-file-name name version))
1165 (sha256
1166 (base32 "0n68hg59h4rjn0ziqbsh5pr03l3kr98zk54659ny6vq107af1w96"))))
1167 (build-system copy-build-system)
1168 (arguments
1169 '(#:install-plan
1170 '(("autoload" "share/vim/vimfiles/")
1171 ("doc" "share/vim/vimfiles/")
1172 ("plugin" "share/vim/vimfiles/"))))
1173 (home-page "https://ctrlpvim.github.io/ctrlp.vim/")
1174 (synopsis "Fuzzy file, buffer, mru, tag, etc. finder for Vim")
1175 (description
1176 "CtrlP features:
1177 @itemize
1178 @item Written in pure Vimscript for MacVim, gVim and Vim 7.0+.
1179 @item Full support for Vim's regexp as search patterns.
1180 @item Built-in @acronym{Most Recently Used, MRU} files monitoring and search.
1181 @item Built-in project's root finder.
1182 @item Open multiple files at once.
1183 @item Create new files and directories.
1184 @item Execute Ex commands on an opening file (jump to a line, to a string or do
1185 anything).
1186 @item Optional cross-session caching and history allow for fast initialization.
1187 @item Mappings and usage conform to Vim's conventions.
1188 @end itemize")
1189 (license license:vim)))
1190
1191 (define-public vim-mucomplete
1192 (package
1193 (name "vim-mucomplete")
1194 (version "1.5.0")
1195 (source
1196 (origin
1197 (method git-fetch)
1198 (uri (git-reference
1199 (url "https://github.com/lifepillar/vim-mucomplete")
1200 (commit (string-append "v" version))))
1201 (file-name (git-file-name name version))
1202 (sha256
1203 (base32 "054g80n09mmxxlh8xaic29bn8bgn3clvv732rymljdyvbj1mlhwd"))))
1204 (build-system copy-build-system)
1205 (arguments
1206 '(#:install-plan
1207 '(("autoload" "share/vim/vimfiles/")
1208 ("doc" "share/vim/vimfiles/")
1209 ("plugin" "share/vim/vimfiles/"))))
1210 (home-page "https://github.com/lifepillar/vim-mucomplete")
1211 (synopsis "MUcomplete is a minimalist autocompletion plugin for Vim")
1212 (description
1213 "MUcomplete is an implementation of chained (fallback) completion,
1214 whereby several completion methods are attempted one after another until a
1215 result is returned.")
1216 (license license:expat)))
1217
1218 (define-public vim-gitgutter
1219 (let ((commit "256702dd1432894b3607d3de6cd660863b331818")
1220 (revision "1"))
1221 (package
1222 (name "vim-gitgutter")
1223 (version (git-version "0.0.0" revision commit))
1224 (source
1225 (origin
1226 (method git-fetch)
1227 (uri (git-reference
1228 (url "https://github.com/airblade/vim-gitgutter")
1229 (commit commit)))
1230 (file-name (git-file-name name version))
1231 (sha256
1232 (base32 "0zpa7cs59a8sq0k3frlf9flpf30jcn239yrpmv40r7nqvxzglbpl"))))
1233 (build-system copy-build-system)
1234 (arguments
1235 '(#:install-plan
1236 '(("autoload" "share/vim/vimfiles/")
1237 ("doc" "share/vim/vimfiles/")
1238 ("plugin" "share/vim/vimfiles/"))))
1239 (synopsis "Vim plugin which shows a git diff in the sign column")
1240 (description
1241 "A Vim plugin which shows a git diff in the sign column. It shows which
1242 lines have been added, modified, or removed. You can also preview, stage, and
1243 undo individual hunks; and stage partial hunks. The plugin also provides a hunk
1244 text object. The signs are always up to date and the plugin never saves your
1245 buffer.")
1246 (home-page "https://github.com/airblade/vim-gitgutter")
1247 (license license:expat))))
1248
1249 (define-public vim-characterize
1250 (package
1251 (name "vim-characterize")
1252 (version "1.1")
1253 (source
1254 (origin
1255 (method git-fetch)
1256 (uri (git-reference
1257 (url "https://github.com/tpope/vim-characterize")
1258 (commit (string-append "v" version))))
1259 (file-name (git-file-name name version))
1260 (sha256
1261 (base32 "0ppsbsd696ih40d9f76mdl9sd9y7p2pvm65qmvq4b2zhkv4xbpxz"))))
1262 (build-system copy-build-system)
1263 (arguments
1264 '(#:install-plan
1265 '(("autoload" "share/vim/vimfiles/")
1266 ("doc" "share/vim/vimfiles/")
1267 ("plugin" "share/vim/vimfiles/"))))
1268 (home-page "https://github.com/tpope/vim-characterize")
1269 (synopsis "Vim plugin for showing Unicode character metadata")
1270 (description
1271 "In Vim, pressing @code{ga} on a character reveals its representation in
1272 decimal, octal, and hex. Characterize.vim modernizes this with the following
1273 additions:
1274 @itemize
1275 @item Unicode character names: @code{U+00A9 COPYRIGHT SYMBOL}
1276 @item Vim digraphs (type after @code{<C-K>} to insert the character):
1277 @code{Co}, @code{cO}
1278 @item Emoji codes: @code{:copyright:}
1279 @item HTML entities: @code{&copy;}
1280 @end itemize")
1281 (license license:vim)))
1282
1283 (define-public vim-tagbar
1284 (package
1285 (name "vim-tagbar")
1286 (version "3.0.0")
1287 (source
1288 (origin
1289 (method git-fetch)
1290 (uri (git-reference
1291 (url "https://github.com/preservim/tagbar")
1292 (commit (string-append "v" version))))
1293 (file-name (git-file-name name version))
1294 (sha256
1295 (base32 "1fqfs8msmr6d4kpvxqp14sdjvp5fj52q5w5kz71myzcd4kqzmirp"))))
1296 (build-system copy-build-system)
1297 (arguments
1298 '(#:install-plan
1299 '(("autoload" "share/vim/vimfiles/")
1300 ("doc" "share/vim/vimfiles/")
1301 ("plugin" "share/vim/vimfiles/")
1302 ("syntax" "share/vim/vimfiles/"))
1303 #:phases
1304 (modify-phases %standard-phases
1305 (add-after 'unpack 'link-universal-ctags
1306 (lambda* (#:key inputs #:allow-other-keys)
1307 (let ((ctags (assoc-ref inputs "universal-ctags")))
1308 (substitute* "autoload/tagbar.vim"
1309 (("(.*)universal-ctags']" all leader)
1310 (string-append all "\n"
1311 leader ctags "/bin/ctags']")))))))))
1312 (inputs
1313 (list universal-ctags))
1314 (home-page "https://github.com/preservim/tagbar")
1315 (synopsis "Vim plugin that displays tags in a window, ordered by scope")
1316 (description
1317 "Tagbar is a Vim plugin that provides an easy way to browse the tags of
1318 the current file and get an overview of its structure. It does this by creating
1319 a sidebar that displays the ctags-generated tags of the current file, ordered
1320 by their scope. This means that for example methods in C++ are displayed under
1321 the class they are defined in.")
1322 (license license:vim)))
1323
1324 (define-public vim-nerdtree
1325 (package
1326 (name "vim-nerdtree")
1327 (version "6.10.16")
1328 (source
1329 (origin
1330 (method git-fetch)
1331 (uri (git-reference
1332 (url "https://github.com/preservim/nerdtree")
1333 (commit version)))
1334 (file-name (git-file-name name version))
1335 (sha256
1336 (base32 "1si8qla86ng8cffbmfrk9gss0i3912yw0f1ph4bsiq0kk837lccp"))))
1337 (build-system copy-build-system)
1338 (arguments
1339 '(#:install-plan
1340 '(("autoload" "share/vim/vimfiles/")
1341 ("doc" "share/vim/vimfiles/")
1342 ("lib" "share/vim/vimfiles/")
1343 ("nerdtree_plugin" "share/vim/vimfiles/")
1344 ("plugin" "share/vim/vimfiles/")
1345 ("syntax" "share/vim/vimfiles/"))))
1346 (home-page "https://github.com/preservim/nerdtree")
1347 (synopsis "Tree explorer plugin for Vim")
1348 (description
1349 "The NERDTree is a file system explorer for the Vim editor. Using this
1350 plugin, users can visually browse complex directory hierarchies, quickly open
1351 files for reading or editing, and perform basic file system operations.")
1352 (license license:wtfpl2)))
1353
1354 (define-public vim-nerdcommenter
1355 (let ((commit "a65465d321f2f8a74b2ffa540b9b87563f7e12e8")
1356 (revision "1"))
1357 (package
1358 (name "vim-nerdcommenter")
1359 (version (git-version "2.5.2" revision commit))
1360 (source
1361 (origin
1362 (method git-fetch)
1363 (uri (git-reference
1364 (url "https://github.com/preservim/nerdcommenter")
1365 (commit commit)))
1366 (file-name (git-file-name name version))
1367 (sha256
1368 (base32 "00ir65iv8jfbgzjmj7332fmydh0qhabbhx8zbvd3j6pgfxqpaafw"))))
1369 (build-system copy-build-system)
1370 (arguments
1371 '(#:install-plan
1372 '(("autoload" "share/vim/vimfiles/")
1373 ("doc" "share/vim/vimfiles/")
1374 ("plugin" "share/vim/vimfiles/"))))
1375 (home-page "https://github.com/preservim/nerdcommenter")
1376 (synopsis "Vim plugin for easy commenting of code")
1377 (description
1378 "NERD commenter is a Vim plugin that provides many different commenting
1379 operations and styles which are invoked via key mappings and a menu. These
1380 operations are available for most filetypes.")
1381 (license license:cc0))))