9 comments

  • aktenlage6 hours ago
    Nice work. Luckily I think I don&#x27;t need it anymore after using vim for 20+ years.<p>As a motivation for new vim users, I&#x27;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&#x27;ll just let Copilot write a small function and key binding and voila, it&#x27;s done. It&#x27;s pretty good at vimscript.<p>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.
    • thanato0s6 hours ago
      I experimented a bit with LLMs and Vim and some are not too bad with Vimscript, but, i don&#x27;t know, it&#x27;s more fun without. Also it&#x27;s nice to understand the code i add in my config.
  • leowoo914 hours ago
    We are in such era it is hard to believe if author&#x2F;site&#x2F;book and comments in this post is legit at all. Maybe it ruined me at least.
    • HAL9500TURBO1 hour ago
      Yeah, I had the same feeling, not sure about what to say, I wouldn&#x27;t like being wrong about it and say anything negative about the author in case he is really just trying to help, but there&#x27;s no time-efficient way to check for these things at this point in time.<p>Since the efforts of putting vim everywhere are always welcome, I will give some random opinions about it here:<p>1. The best way of teaching it would probably be a gamified version, not sure if anyone did this yet. People have really low attention spans nowadays. Unless I&#x27;m reading a novel or something like that, I will throw text into an LLM to get a summary anyway, even if I feel a bit bad about it (it&#x27;s just more efficient).<p>2. Personally I&#x27;ve always referenced people to Luke Smith&#x27;s (otherwise known as &quot;Vim Diesel&quot;) video on vim for beginners to learn most of the useful commands.
      • thanato0s1 hour ago
        No need to throw my text to an LLM, just ask the LLM directly.<p>I don&#x27;t think LLMs are the best to generate consistency at the scale of a book. To me it&#x27;s just a choice between reading human&#x27;s writing and reading hundred of pages where there is no intention... and maybe full of bullshits. At least my bullshits are due to human error :D<p>But I mean I don&#x27;t want this whole thread to be about LLM. It&#x27;s just about Vim, a cool text editor in the shell.<p>For the gamified version there is the great <a href="https:&#x2F;&#x2F;www.vimgolf.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.vimgolf.com&#x2F;</a>, and there is also Vim adventures<p>EDIT: Also there is the famous snake game where hjkl are the arrow keys: <a href="https:&#x2F;&#x2F;themouseless.dev&#x2F;snake&#x2F;" rel="nofollow">https:&#x2F;&#x2F;themouseless.dev&#x2F;snake&#x2F;</a><p>funny enough I wanted to develop a game at one point in Clojure to learn Vim, but I never really finished it. Maybe I should do that.<p>Oh and here&#x27;s a wayback machine from 2021: <a href="https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20211002194931&#x2F;https:&#x2F;&#x2F;themouseless.dev&#x2F;vim&#x2F;" rel="nofollow">https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20211002194931&#x2F;https:&#x2F;&#x2F;themousel...</a>
    • thanato0s3 hours ago
      That&#x27;s true, that&#x27;s sad. Since I&#x27;m now ancient, I remember an era where there were many forums and weird website full of GIFs. It wasn&#x27;t perfect for sure, but at least we were owning the Internet, without asking ourselves what&#x27;s true or false all the time. It&#x27;s a boolean for god&#x27;s sake<p>I guess I&#x27;ll write about all of that soon, but I think it&#x27;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&#x27;t depend on anything. It&#x27;s easy to share too, and format like Markdown can be rendered easily.<p>Also I like spending my time in the terminal, don&#x27;t ask me why.
  • nickandbro1 hour ago
    The hexagon layout for the front page reminds me of my own vim tutor app:<p><a href="https:&#x2F;&#x2F;vimgolf.ai" rel="nofollow">https:&#x2F;&#x2F;vimgolf.ai</a>
    • thanato0s1 hour ago
      Hexagones everywhere. I think I was inspired from a CSS book...<p>Never been a fan of Vim in the browser, sorry :D I like the real thing in the shell.
  • _def1 hour ago
    hm i would love some vim guidance but to me this seems quite pricey - maybe its worth it
    • thanato0s1 hour ago
      You can still read the free sample, it&#x27;s linked in the first message. It&#x27;s the first three chapters, and the table of contents of the whole book. The internal links don&#x27;t work well because I can&#x27;t link to the part of the book missing. It&#x27;s still 74 pages plus the preface.
  • robenheimer1 hour ago
    i don&#x27;t understand the hate i&#x27;ve seen about vim in recent years. it&#x27;s pretty quick to pick up the basics, and everything else you learn when you need to learn it. at least it&#x27;s not emacs xD
    • thanato0s1 hour ago
      I don&#x27;t think it&#x27;s hate, it&#x27;s just that Vim is different enough from most text editors for people to get confused quickly, especially if they&#x27;re coming from the GUI world. And then you get memes.<p>I mean it&#x27;s not perfect by any mean but it has so many good ideas. It has some heart I&#x27;d say.<p>and yeah Vim is not an OS ;)
  • pullshark916 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&#x27;t recover from it without reboot. I tried it again and got the same results. Vim is fun.
    • thanato0s6 hours ago
      Everything fails. Entropy or something...<p>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.
      • alpaca1282 hours ago
        Long lines are Vim&#x27;s biggest weakness, I have no idea why. Even relatively short lines of a couple thousand characters cause noticeable input lag.
        • thanato0s2 hours 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&#x27;t think treesitter using Neovim has this problem, I should test that.
  • kinfish5 hours ago
    nice work on this. what was a motivation behind this ? just learning or what
    • thanato0s5 hours ago
      Thanks! Vim is quite fascinating, and I don&#x27;t think using the shell or Vim is that difficult, and it&#x27;s so flexible! If I&#x27;ve a specific need, say uppercase my titles in some ways, i can just add that and now I&#x27;ve access to a new feature. I don&#x27;t know, it&#x27;s just great.<p>I wrote a lot of stuff in my blog before that, and another book. It&#x27;s just what I like to spend my morning before work; playing with Markdown, latex, Lua, the shell, and write stuff.
  • smashandgrab6 hours ago
    I have this beautiful dream where I never touch my mouse again.<p>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.<p>I don’t hate you, mouse. I just have a dream.
    • Fire-Dragon-DoL34 minutes ago
      Given everything is through AI now, it might be possible? Even through voice?
    • thanato0s6 hours ago
      What are these tools?
  • shellwizard3 hours ago
    [dead]