Live data from Hacker News

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

evanhahn.com

21–30 of 142 posts

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

#21
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!

[deleted]

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

#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 across files, seems magical.

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

#23

> The feeling of true Vim fluency—one where every keystroke is exact, I never make mistakes, and I’m exploiting every obscure feature—is a fantasy, at least for me. Perfection is not particularly attainable, or necessarily the point. Nor would it be that fun, I think? It's nice to have some aspect to improve upon. See this Casals quote: > A reporter asked Casals, "You are 95 and the greatest cellist that ever lived.…

Although, also, perfection probably doesn’t come from adding options either.

I can use hjkl y and d perfectly! :set rnu and I can even throw some numbers in there!

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

#24
post #11

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

>> single keystroke could move the cursor halfway across the file to exactly the right spot.

> sorry what is this? exaggeration?

It is indeed. I need two keystrokes to move from an arbitrary positions in an arbitrarily long file to the exact spot I need to be.

I use it all the time, in fact. Multiple times an hour. It's muscle memory now for me, while reading/navigating code, to automatically do `ma` or `mb` etc.

At some later point I realise "let me read the function definition again" and then I do `'a` or `'b`, etc.

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

#25
post #7
post #6

Earlier quoted context omitted.

Mind sharing your .vimrc file with the world? Would love to try it.

https://pastebin.com/YCQmKJRJ

Most of it is commented very well. Also I like it because it has a little bit of personal character.

  > " Incrementally match the search.  I orignally hated this
  > " but someone forced me to live with it for a while and told
  > " me that I would grow to love it after getting used to it...
  > " turns out he was right :)
  > set incsearch

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

#26
post #18

This feels like the "wrong" direction today with the advent of AI? Just seems like in the realm of "bending yourself to the tool vs bending the tool to yourself," it's the LATTER that's about to get a whole lot easier, if it isn't already. So, sure, there are probably things you can learn, but e.g. I'm much more about "I think it should be THIS way so how do I make it do that."

The problem is both (1) knowing what you want, and (2) specifying what you want.

(1) is hard enough and a necessary prerequisite to (2) which, even so, is even harder than (1).

Good, documented software is the accumulated knowledge of people who (1) knew what they wanted, (2) implemented it, and (3) communicated how it works. AI can ease the building of such software but does not make the process trivial.

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

#27
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!

Then there’s Emacs, where Meta - > takes three fingers!

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

#28
post #18

This feels like the "wrong" direction today with the advent of AI? Just seems like in the realm of "bending yourself to the tool vs bending the tool to yourself," it's the LATTER that's about to get a whole lot easier, if it isn't already. So, sure, there are probably things you can learn, but e.g. I'm much more about "I think it should be THIS way so how do I make it do that."

Learning Vim has been one of the highest-longevity skill I picked up in University. With every new technology - autocomplete, IDEs, various GUI design interfaces - there's always a chorus of folks who say: "Well now you don't need to Vim, this new tool makes that obsolete." And every time I end up having to manipulate a mountain of text regardless - whether that's in logs, source code, configuration, or documentation. With the amount of text that AI outputs I don't see the need to manipulate text going away and Vim is one of the fastest and most flexible ways to do that.

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

#29
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, especially considering how most VIM commands take motion into account.

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

#30

> The feeling of true Vim fluency—one where every keystroke is exact, I never make mistakes, and I’m exploiting every obscure feature—is a fantasy, at least for me. Perfection is not particularly attainable, or necessarily the point. Nor would it be that fun, I think? It's nice to have some aspect to improve upon. See this Casals quote: > A reporter asked Casals, "You are 95 and the greatest cellist that ever lived.…

Although, also, perfection probably doesn’t come from adding options either. I can use hjkl y and d perfectly! :set rnu and I can even throw some numbers in there!

> Although, also, perfection probably doesn’t come from adding options either.

No. However, the first step to _refinement_ is knowing about the thing you want to refine, so in that sense actively engaging and learning about the option lets you know whether to pursue it further.

Post reply on HN