Live data from Hacker News

I set all 376 Vim options and I'm still a fool

evanhahn.com

41–50 of 142 posts

Re: I set all 376 Vim options and I'm still a fool

#41
I think it took me about four months of daily use to know most of the editor basics without having to pause to look up things. Another eight for it all to feel natural. And, maybe about six years later, it remains my favorite text entry and code editing environment.

I've been using the LazyVim https://www.lazyvim.org/> neovim setup and a handful of extras, but not too many. I still have to look up some esoteric stuff, but for the most part, it's completely natural.

And for the first few years, I was a hardline keyboard-only absolutist, but lately I've been using the mouse where it makes sense, and sometimes it does.

(MacOS, iTerm2, neovim, lazyvim, love this combo)

Re: I set all 376 Vim options and I'm still a fool

#42

I never understood the appeal of these command-line editors with a million commands for different edge-cases. Why not just use VSCode? It has every possible extension you already need and a simple GUI. No need to type commands just to edit text when there's a file manager... It has remote SSH and features for vm machines. To me the kinds of people using these editors are the kinds of people that love making everythin…

Why use C++ when you can use BASIC?

The learning curve can be steep but once you learn vi/Vim you can never go back to an IDE like VScode because it is so unbelievably limited.

When you get comfortable with vi it really begins to feel like you can type text in VScode but you can't edit it.

Re: I set all 376 Vim options and I'm still a fool

#43

I never understood the appeal of these command-line editors with a million commands for different edge-cases. Why not just use VSCode? It has every possible extension you already need and a simple GUI. No need to type commands just to edit text when there's a file manager... It has remote SSH and features for vm machines. To me the kinds of people using these editors are the kinds of people that love making everythin…

you do not need to install it anywhere... its already everywhere ( I am vim enthusiast ) for eg: Keep right hand free for writing/eating by reserving left hand for mouse. (keep same settings for right handed mouse) Brrrr... :p

So would the use-case mostly be for people who edit lots of files over shells? I guess I was mostly thinking of coding stuff. Or do people use it for coding too?

Re: I set all 376 Vim options and I'm still a fool

#44
post #22
post #11

> single keystroke could move the cursor halfway across the file to exactly the right spot. sorry what is this? exaggeration?

I can see how that could work depends on the setup and the context. For example: People might use `. to jump to the last edit, or to a mark they set manually. Or simply `ciq` to edit inside the next quote without any manual cursor movements. I see people use plugin like harpoon to jump to their favorite location quickly. If you don't know about such setup, seeing people type 1 to jump not just within a file, but acro…

Capital letters for marks work across files without plugins.

Re: I set all 376 Vim options and I'm still a fool

#45

I applaud this project, “setting all the options”. I think it’s a really good idea to become close friends with the software you use all the time, and getting acquainted through the lens of configuration is one way. Messing around with stuff is good. I feel it’s worth mentioning that there is a sense in which I think it might be a bad idea. It could be that you’d now be fixating some value that may be optimal right n…

"Become close friends with the software you use all the time." That is a beautifully evocative phrase for a lovely idea, thank you for sharing.

If I may share an idea for which I don't have nearly as nice and succinct a summation, but I've come to view my personal computing environments through the lens of being a garden. I spend so much time within them, working, learning, playing and writing. I can see the different seasons of my life reflected through naming conventions, directory structures, scripts I've written and bookmarks I've long ignored. There are new things I want to try and explore in the spring when I hopefully have a bit more free time. I have planted seeds while children slept in my arms or in the next room, and I have enabled their dreams with the fruits of my labour. I would even say I have occasionally communed with the close and holy darkness on long, late nights.

In time everything I have created will return to dust, and probably no one will ever know this garden as I have. But it has still been a place of growth and blessing.

Re: I set all 376 Vim options and I'm still a fool

#46
post #11

> single keystroke could move the cursor halfway across the file to exactly the right spot. sorry what is this? exaggeration?

Nope! "G" moves the cursor to the end of the file. Very useful. Inferior editors have ctrl-end or alt-end, but with Vim, 90% of your lazy fingers stay on the home row!

Also H, M, and L for high/middle/low of the lines currently visible on the screen.

Re: I set all 376 Vim options and I'm still a fool

#47

I never understood the appeal of these command-line editors with a million commands for different edge-cases. Why not just use VSCode? It has every possible extension you already need and a simple GUI. No need to type commands just to edit text when there's a file manager... It has remote SSH and features for vm machines. To me the kinds of people using these editors are the kinds of people that love making everythin…

> To me the kinds of people using these editors are the kinds of people that love making everything more complex to seem smart.

If your instinct is to be denigrate people who do things differently than you, you will never understand them. However, you get the advantage of feeling superior.

Let me say why I continue using vi. I started using vi in the early 80s, then moved to vim in the mid 90s. Even people who aren't as old at me have more than a decade of using vi/vim/nvi. Those commands that seem like a burden to remember are completely transparent to me -- that is, I don't need to think about what keystroke to hit to achieve my ends. Why should I climb another learning curve?

If you tell me to just download a vi mode for vscode, I can tell you that the basic motions work, but that last 10% cause unending grief. It is like eating pasta where every 10th noodle is actually a rock disguised to look like a noodle -- completely disruptive.

I can edit quickly when I don't need to move my hands off the keyboard. Likely your dominant hand is flopping back and forth between the mouse and the keyboard when using your gui-centric editor.

> I never understood the appeal of these command-line editors with a million commands for different edge-cases. Why not just use VSCode? It has every possible extension you already need

I'd prefer to have a few dozen composable verbs and nouns than having to research and download "a million" extensions for the edge cases.

> No need to type commands just to edit text when there's a file manager

I have no idea what you mean by this. How does a file manager edit your text?

> It has remote SSH and features for vm machines

You can do that from vim as well. vim/nvi has a plugin ecosystem too. My own philosophy is to use as few of them as I can: one (the 'matchit' feature which ships with the editor).

The final thing you are missing is that nobody uses all the commands -- they find the ones that work for them and they use them without further thought once it becomes muscle memory. If the need ever arises to learn a new command or setting, I'll get around to it when the time comes. If I learn a bunch of things and don't use them, they get quickly forgotten anyway.

Re: I set all 376 Vim options and I'm still a fool

#48

I think it took me about four months of daily use to know most of the editor basics without having to pause to look up things. Another eight for it all to feel natural. And, maybe about six years later, it remains my favorite text entry and code editing environment. I've been using the LazyVim https://www.lazyvim.org/ > neovim setup and a handful of extras, but not too many. I still have to look up some esoteric stuf…

Have you tried WezTerm yet? It also uses lua for writing its configs which makes it highly customizable.

I've switched to it from iTerm2 a couple of years ago and gradually added more and more to my config and it's super powerful.

Re: I set all 376 Vim options and I'm still a fool

#49

Instead of having encyclopedic knowledge of every feature, I think editor fluency is being really good at the few features you need such that the editor is no longer the bottleneck. The few features you really need to know for VIM are mostly in `:help motion.txt`. Knowledge of other features is obviously helpful in actually editing text, but being able to navigate well should remove most of the bottlenecks, especiall…

Does anyone have a motion jump plugin they use with neovim they can recommend? I used to use a plugin where you could just to a given character in a given buffer, but I can’t remember the name or if it even works with neovim.

Re: I set all 376 Vim options and I'm still a fool

#50
post #38

I've been using vim for over 20 years as my primary editor. I'm faster and more comfortable in it than I am in any other editor, but I still feel like a vim noob I still have to look up how to do things I rarely do (like insert the contents of another file at the cursor position). And I don't really use many (if any) of vim's intermediate features, let alone advanced ones. I've tried various ways to get more fluent,…

I've been using vim for 20 years as well, for everything other than Java code. I type my .vimrc by hand on each new machine to set a half dozen options.

Of the intermediate features, I use tabs and, more recently, split windows.

My favorite 'advanced' feature is visual block selection and replacement over multiple lines - super convenient.

Post reply on HN