An unofficial, read-only Hacker News reader.

Show HN: I wrote an entire Vim manual over 4 years (opens external site)

310 points by thanato0s 2 days ago | themouseless.dev | 118 comments on HN

View full thread · View on Hacker News

Comment thread (5)

  1. It took me five years to realize Vim was not for me. Maybe this would've made a difference, but it's 21 chapters long. Perhaps something is wrong wrong with the architecture of Vim itself when it takes 21 chapters to explain how to use a text editor.
    Replies (2)
    1. I’ve been using Vim for over 15 years, but never tried to learn everything.

      Learning the basics like getting used to hjkl instead of arrow keys, and knowing how to jump around like to the top or bottom or a relative number of lines, and learning how the verbs work so that you can “delete inner word” diw and “change inner word” ciw, and how to use regex on whole file and on visual selection, and making a block visual selection, and indenting a visual selection, covers a lot of what I do. Also knowing how to record and play short macros is sometimes useful, but I only reach for macros a couple of times a month at most.

      I might be less efficient than someone who knows Vim truly inside and out, but I’m pretty happy with what I get out of Vim with what I’ve learned.

      I might come back to this book though, to pick up some more knowledge on Vim. But I have some other books to read first, so I’m not going to buy it today or in the next few months.

      Replies (1)
      1. That makes sense, I mean Vim's help is really helpful to learn step by step just by doing. Everything you're listing here is already a lot, but for somebody who uses Vim for 15 years that's normal to learn all of that by simply doing. It's a bit learning without the will to learn, isn't it?

        Where my book can be useful is due to the cheer amount of real life examples in there, not something Vim's help (or even the official Vim manual) is very good at. I hope it's inspirational and give ideas how to configure things even further.

    2. It’s a powerful editor. The basics can probably be explained inside a single cheatsheet (and that’s what vimtutor does). But that’s just basic editing on the level of any editor.

      The rest is learning of the powerful features that exists in vim like registers, macros, the quickfix list, options like makeprg and the concept of compilers, using windows and the sessions,… And there’s the scripting capabilities. Those are what people stay in those editors. Once you craft your perfect tooling, everything else is lacking in some way.

      Replies (1)
      1. I like vimtutor, but it goes more in depth than it should in my opinion. It's not only the basics; I remember going through a long time ago and didn't remember much a couple of days afterward.

        I've also this project of writing multiple vimtutors, one per chapter of the book. I think you can do that in Neovim, not sure about Vim.