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.
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.
Weird. I tried using LLMs for help with vimscript (not even for code generation, just pointed questions) and the results were very broken/hallucinated. My guess is that vimscript is too obscure for LLMs to be useful.
I've recently switched to neovim, and claude is oneshotting plugin tweaks in nvim lua, writes complex keybindings and accurately answers pretty obscure questions, sometimes looking into nvim source code. I doubt it'd have hard time with good old vimscript, though I haven't tried much. It certainly can read and reason about vimscript plugins.
Generating config is not too hard, but as always with LLMs it's also the question of maintainability; I've my dotfiles for a long time now, and I don't have to fix it every two weeks. I'm not sure it would be so pain free if I was just generating config left and right.
Even before LLMs was all what mattered I couldn't really use bloated external config, because without understanding what is what I can't really know what I need and how to add it...
I like simplicity and controlling my tool, that's maybe why.
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.
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.
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.
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.
> Of course, this should all be done on a Debian Linux box
I couldn't go any further in this damned article. I personally believe the author didn't do their homework: while the rodent is an obvious affliction we must get rid of, it can also stroll around when properly trained, and can be tolerated. It's not reliable, the thing having swinging moods; it can perforate some carpal tunnel directly in the wrist, but it's also nice to pet.
But this sentence is where the author lost me. We install Arch Linux over here. To quote one of my friend: You think he's the danger? I am the danger. Or something.
That being said: scheme mentioned, so the author has at least some taste.
That looks cool. I wrote a while back how to have a "mouseless" development environment; I use the keyboard at most thing text and window, but not when it's about graphic design for example (gimp, editing photos with darktable...). Basically I drive daily a combination of linux/i3/tmux/shell/vim. Same system for my work and my personal computer, with mostly the same config.
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.
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.
Yeah, I had the same feeling, not sure about what to say, I wouldn't like being wrong about it and say anything negative about the author in case he is really just trying to help, but there's no time-efficient way to check for these things at this point in time.
Since the efforts of putting vim everywhere are always welcome, I will give some random opinions about it here:
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'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's just more efficient).
2. Personally I've always referenced people to Luke Smith's (otherwise known as "Vim Diesel") video on vim for beginners to learn most of the useful commands.
No need to throw my text to an LLM, just ask the LLM directly.
I don't think LLMs are the best to generate consistency at the scale of a book. To me it's just a choice between reading human'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
But I mean I don't want this whole thread to be about LLM. It's just about Vim, a cool text editor in the shell.
For the gamified version there is the great https://www.vimgolf.com/, and there is also Vim adventures
i don't understand the hate i've seen about vim in recent years. it's pretty quick to pick up the basics, and everything else you learn when you need to learn it. at least it's not emacs xD
I don't think it's hate, it's just that Vim is different enough from most text editors for people to get confused quickly, especially if they're coming from the GUI world. And then you get memes.
I mean it's not perfect by any mean but it has so many good ideas. It has some heart I'd say.
In my experience most younger people in the field are here for the payday and not for love of computers. They're significantly less experimental or willing to try new things (paradoxically even when they would drastically improve their output efficiency by doing so.)
You can still read the free sample, it's linked in the first message. It's the first three chapters, and the table of contents of the whole book. The internal links don't work well because I can't link to the part of the book missing. It's still 74 pages plus the preface.
I guess you could say the same thing with preferring the original vimtutor than your ebook. Having it on the browser just happens to be the easier way to teach it to first time windows users without having them download it.
It's just a question of feeling to me. Love even :D Vim is nice to use in my system because it can interface easily with the shell, and it's super responsive. Also it's super easy to install so I'm not sure why I need it to use a replica in the browser...
I think a better analogy would be: why my ebook is PDF and ePub only when it could have been readable and writable in Vim. There are answers to that, but it's true that at the end I display Vim doc outside of the tool I'm speaking about.
It's almost 5 actually! I realized that when looking at the reddit post to ask folks what they thought about the idea... it was another time it feels like.
I mostly cut Neovim specific stuff. I wanted to speak about LSP and treesitter, but I realized that with Vim native features it was just too much. The book is already quite large when the solutions of the exercises are included, and it would have taken even longer to finish it.
Also these features and Neovim in general are a bit moving targets, so it's difficult to write about it without being inacurate two weeks later.
My biggest regret is to totally skip the Vim's embedded terminal, but I might add that down the line.
No, it's pdf and epub only, no plain text. Although I have no idea what a CLI tool like pdftotext would do... I also had the idea at one point to do one vimtutor-style file per chapter. I might do that in the future. In the todo list
Kudos on finishing the book, that’s a huge achievement!
I’ve been daily driving vim for about 15 years now so don’t think it’s something for me, but it’s good to see new content being created for the next generation software engineers (although they might only see prompt interfaces 99% of the time).
aktenlage | 11 hours ago
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.
[OP] thanato0s | 10 hours ago
negura | 4 hours ago
N_Lens | 4 hours ago
codesnik | 3 hours ago
[OP] thanato0s | an hour ago
Even before LLMs was all what mattered I couldn't really use bloated external config, because without understanding what is what I can't really know what I need and how to add it...
I like simplicity and controlling my tool, that's maybe why.
pullshark91 | 11 hours ago
[OP] thanato0s | 10 hours ago
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 | 7 hours ago
[OP] thanato0s | 7 hours ago
smashandgrab | 10 hours ago
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.
[OP] thanato0s | 10 hours ago
Fire-Dragon-DoL | 5 hours ago
harry8 | 2 hours ago
I found the inspiration hilarious, don't miss it even if this window manager is not for you.
https://www.nongnu.org/ratpoison/inspiration.html
[OP] thanato0s | 20 minutes ago
I couldn't go any further in this damned article. I personally believe the author didn't do their homework: while the rodent is an obvious affliction we must get rid of, it can also stroll around when properly trained, and can be tolerated. It's not reliable, the thing having swinging moods; it can perforate some carpal tunnel directly in the wrist, but it's also nice to pet.
But this sentence is where the author lost me. We install Arch Linux over here. To quote one of my friend: You think he's the danger? I am the danger. Or something.
That being said: scheme mentioned, so the author has at least some taste.
vinyl7 | 2 hours ago
[OP] thanato0s | 28 minutes ago
kinfish | 10 hours ago
[OP] thanato0s | 10 hours ago
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.
leowoo91 | 8 hours ago
[OP] thanato0s | 8 hours ago
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.
dimator | 10 minutes ago
HAL9500TURBO | 6 hours ago
Since the efforts of putting vim everywhere are always welcome, I will give some random opinions about it here:
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'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's just more efficient).
2. Personally I've always referenced people to Luke Smith's (otherwise known as "Vim Diesel") video on vim for beginners to learn most of the useful commands.
[OP] thanato0s | 6 hours ago
I don't think LLMs are the best to generate consistency at the scale of a book. To me it's just a choice between reading human'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
But I mean I don't want this whole thread to be about LLM. It's just about Vim, a cool text editor in the shell.
For the gamified version there is the great https://www.vimgolf.com/, and there is also Vim adventures
EDIT: Also there is the famous snake game where hjkl are the arrow keys: https://themouseless.dev/snake/
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.
Oh and here's a wayback machine from 2021: https://web.archive.org/web/20211002194931/https://themousel...
robenheimer | 6 hours ago
[OP] thanato0s | 6 hours ago
I mean it's not perfect by any mean but it has so many good ideas. It has some heart I'd say.
and yeah Vim is not an OS ;)
bitfilped | 3 hours ago
_def | 6 hours ago
[OP] thanato0s | 6 hours ago
nickandbro | 5 hours ago
https://vimgolf.ai
[OP] thanato0s | 5 hours ago
Never been a fan of Vim in the browser, sorry :D I like the real thing in the shell.
nickandbro | 2 hours ago
[OP] thanato0s | 47 minutes ago
I think a better analogy would be: why my ebook is PDF and ePub only when it could have been readable and writable in Vim. There are answers to that, but it's true that at the end I display Vim doc outside of the tool I'm speaking about.
emerald_24 | 2 hours ago
[OP] thanato0s | 35 minutes ago
I mostly cut Neovim specific stuff. I wanted to speak about LSP and treesitter, but I realized that with Vim native features it was just too much. The book is already quite large when the solutions of the exercises are included, and it would have taken even longer to finish it.
Also these features and Neovim in general are a bit moving targets, so it's difficult to write about it without being inacurate two weeks later.
My biggest regret is to totally skip the Vim's embedded terminal, but I might add that down the line.
sschmitt | 2 hours ago
[OP] thanato0s | 54 minutes ago
Insanity | an hour ago
I’ve been daily driving vim for about 15 years now so don’t think it’s something for me, but it’s good to see new content being created for the next generation software engineers (although they might only see prompt interfaces 99% of the time).