aboutsummaryrefslogtreecommitdiff
path: root/content/posts/2024-06-02-vim-books.md
blob: 8d43c6f505eccde369ddce264fc28a9fc2fa8989 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
---
slug: vim-books
title: "Vim Books"
date: "2024-06-02T10:00:00-04:00"
---

While perusing [Vim scripts][], I noticed that there are several [Vim
books][].  A couple of them piqued my interest:

- [Practical Vim, Second Edition (2015)][practical vim]
- [Modern Vim (2018)][modern vim]

I bought both books and I'm about 300 pages into [Practical Vim][].  So
far it's great.  I have been using [Vim][] for over 20 years but I still
learned a few things; for example, I did not know about [the `\v` "very
magic" prefix for patterns][very-magic].

If you buy the books from [the publisher][pragprog] instead of
[Amazon][] you can download the [eBooks][] as [DRM][]-free [PDF][],
[EPUB][], and [MOBI][] files.  I read the [PDFs][pdf] on my desktop and
the [EPUBs][epub] in the [Kindle app][] on my phone (imported via [Send
to Kindle][]).

Unlike many technical books, the [EPUBs][epub] render very nicely in the
[Kindle app][].  Example:

[Page from "Practical Vim" rendered by the Kindle app on a Pixel 8
Pro][example]

**Update (2024-06-15):** I finished both books.  [Practical Vim][] is
great and I recommend it.  [Modern Vim][] is a bit of a tossup:

- Pros: The introduction to [neovim][] is helpful and so is the section
  on [fzf][] integration.
- Cons: Several chapters are a subset of material from [Practical
  Vim][] (examples: chapters 2 and 4).  Also [Modern Vim][] does not
  cover *modern* [Vim][] features like [the `terminal`
  command][terminal], which I use regularly.

To be fair, [`:terminal`][terminal] is mentioned briefly in the "What's
Next for Vim 8" section of Appendix 1, and it was not included in a
stable release until after [Modern Vim][] was published.

[pragprog]: https://pragprog.com/
  "The Pragmatic Bookshelf"
[drm]: https://en.wikipedia.org/wiki/Digital_rights_management
  "Digital Rights Management"
[pdf]: https://en.wikipedia.org/wiki/PDF
  "Portable Document Format (PDF)"
[epub]: https://en.wikipedia.org/wiki/EPUB
  "EPUB eBook file format"
[ebooks]: https://en.wikipedia.org/wiki/Ebook
  "electronic book"
[vim]: https://www.vim.org/
  "Vi-improved text editor"
[neovim]: https://neovim.io/
  "hyperextensible Vim-based text editor"
[very-magic]: https://vimhelp.org/pattern.txt.html#%2Fmagic
  "Documentation for magic settings in Vim, including the \\v \"very magic\" prefix."
[kindle app]: https://en.wikipedia.org/wiki/Amazon_Kindle#Kindle_applications
  "Kindle application"
[send to kindle]: https://www.amazon.com/sendtokindle
  "Send to Kindle"
[practical vim]: https://pragprog.com/titles/dnvim2/practical-vim-second-edition/
  "Practical Vim, Second Edition, by Drew Neil (2015)"
[modern vim]: https://pragprog.com/titles/modvim/modern-vim/
  "Modern Vim, by Drew Neil (2018)"
[vim books]: https://iccf-holland.org/vim_books.html
  "Vim books"
[vim scripts]: https://www.vim.org/scripts/
  "Scripts for Vim"
[amazon]: https://amazon.com/
  "Amazon"
[example]: /files/posts/vim-books/practical-vim-epub-example-page.png
  "Page from \"Practical Vim\" EPUB rendered in Kindle App"
[pixel 8 pro]: https://en.wikipedia.org/wiki/Pixel_8
  "Pixel 8 Pro"
[mobi]: https://en.wikipedia.org/wiki/Mobipocket
  "Mobipocket eBook file format"
[terminal]: https://vimhelp.org/terminal.txt.html#terminal
  "Vim terminal window support"
[fzf]: https://junegunn.github.io/fzf/
  "command-line fuzzy finder"