Show HN: I wrote an entire Vim manual over 4 years

(themouseless.dev)

39 points | by thanato0s 10 hours ago ago

12 comments

  • aktenlage 5 hours ago

    Nice work. Luckily I think I don't need it anymore after using vim for 20+ years.

    As a motivation for new vim users, I'd like to mention that LLMs make it even more awesome to use such a malleable editor. When I think of some functionality I need, I'll just let Copilot write a small function and key binding and voila, it's done. It's pretty good at vimscript.

    Latest example: a key (gK) to show the full git commit message of the current line. Or, when used with a number (e.g. 4gK) the message of the nth previous commit touching that line.

    • thanato0s 4 hours ago

      I experimented a bit with LLMs and Vim and some are not too bad with Vimscript, but, i don't know, it's more fun without. Also it's nice to understand the code i add in my config.

  • leowoo91 2 hours ago

    We are in such era it is hard to believe if author/site/book and comments in this post is legit at all. Maybe it ruined me at least.

    • thanato0s 2 hours ago

      That's true, that's sad. Since I'm now ancient, I remember an era where there were many forums and weird website full of GIFs. It wasn't perfect for sure, but at least we were owning the Internet, without asking ourselves what's true or false all the time. It's a boolean for god's sake

      I guess I'll write about all of that soon, but I think it's important nowadays to own our stuff, without necessarily leaking everything to the data brokers. I like local plain text for that; I just don't depend on anything. It's easy to share too, and format like Markdown can be rendered easily.

      Also I like spending my time in the terminal, don't ask me why.

  • kinfish 4 hours ago

    nice work on this. what was a motivation behind this ? just learning or what

    • thanato0s 3 hours ago

      Thanks! Vim is quite fascinating, and I don't think using the shell or Vim is that difficult, and it's so flexible! If I've a specific need, say uppercase my titles in some ways, i can just add that and now I've access to a new feature. I don't know, it's just great.

      I wrote a lot of stuff in my blog before that, and another book. It's just what I like to spend my morning before work; playing with Markdown, latex, Lua, the shell, and write stuff.

  • smashandgrab 4 hours ago

    I have this beautiful dream where I never touch my mouse again.

    Unfortunately the tools used by incident responders are mostly built in GUIs and tabbing through everything is less productive than just reaching for the mouse.

    I don’t hate you, mouse. I just have a dream.

  • pullshark91 4 hours ago

    I use only Vim to edit my files everywhere. Today I tried to open a keystore file with vim inside Xarchiver. My XFCE froze and didn't recover from it without reboot. I tried it again and got the same results. Vim is fun.

    • thanato0s 4 hours ago

      Everything fails. Entropy or something...

      Vim always ended up frozen on me when opening big XML files, one big verbose line each. Just had to delete my tmux session though, not restart everything.

      • alpaca128 44 minutes ago

        Long lines are Vim's biggest weakness, I have no idea why. Even relatively short lines of a couple thousand characters cause noticeable input lag.

        • thanato0s 40 minutes ago

          It could be the syntax highlighting if you have that on; Vim loves to throw regexes to long lines to highlight them. Thankfully it stops at one point. I don't think treesitter using Neovim has this problem, I should test that.