Live data from Hacker News

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

evanhahn.com

81–90 of 142 posts

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

#82
post #75

That's because you should've fixed the foundation instead. For example, > I frequently opened this by running q: instead of :q, and didn’t know what I had done. Now I know: But you still haven't fixed the typo-prone keybinds! And you still haven't set up a way to get this information so that next time something unexpected happens you can open your log of commands and see exactly what you've done and decide on the spo…

> But you still haven't fixed the typo-prone keybinds! Which key bindings are you referring to? It's not a trap, I promise! Just fishing for ideas.

I literally meant the ones I quoted

> by running q: instead of :q

other than that don't have a bigger list since most of the defaults are bad, so didn't use them

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

#83
post #73

Stuff like typing "10j" made sense when text editing was high latency. Nowadays you can just hold j and stop precisely where you wanted to, even if you're ssh'ing into a server on the other side of the country. There's nothing wrong with it (and in fact I prefer it because of the 0 finger movement required). The only times I use "precise" movement commands like that is when I'm in the odd situation of having to ssh i…

Generally I'm using 'e' to go forward and 'b' to go backward

Whereas I have always used `w` and did not even know that `e` existed (not that I can see an obvious advantage to it). Ahh, vim.

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

#84
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,…

Same here. I use vim over other editors / key schemas mostly because it's easier for me than pressing a whole bunch of keys simultaneously. I use it where I can in other apps too. That's also why I only use a relatively small subset (whatever they all implement) and never spent too much time into going totally overboard with learning all its capabilities.

Also, typing just isn't really that much of task in the first place. I spend way more time trying to find out what to do and how, and then finally typing it isn't as relevant that I would need to optimize it over a certain point.

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

#85

Earlier quoted context omitted.

> that's a wrong mindset The very idea there is a 'right mindset' is weird to me.

OP didn't necessarily say that, they just said _that_ particular mindset is not it.

thank you. vim is a tool, a good tool but just a tool

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

#86

Stuff like typing "10j" made sense when text editing was high latency. Nowadays you can just hold j and stop precisely where you wanted to, even if you're ssh'ing into a server on the other side of the country. There's nothing wrong with it (and in fact I prefer it because of the 0 finger movement required). The only times I use "precise" movement commands like that is when I'm in the odd situation of having to ssh i…

I found that moving between empty lines is the nicest way to navigate most code across all programming languages, markup languages and just regular text. I don’t have to think, I don’t have to count, I just move and select text big chunks at a time… (not in vim, but I first saw someone have key bindings for this in vim)

This is the one thing I brought from my time of trying out vim.

I have now set all my editors to move by paragraph with ctrl+up/dn. It fits so well together with ctrl+left/right that I think it should be standard behaviour. I also set up ctrl+shift+up/dn to select, of course.

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

#88

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.

Check out folke/flash.nvim for a motion jump plugin. It’s brilliant.

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

#89
> Vim and Neovim have more differences than I thought. Among the many changes, [...], that Q repeats the last recorded macro

I followed the link where it says:

> Q Repeat the last recorded register [count] times..

> {Visual}Q In linewise Visual mode, repeat the last recorded register for each selected line.

That's a surprise, I have both in my config since my time on Vim but I didn't know they were implemented by default in Neovim. I guess the maintainers read the same article I did many moons ago.

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

#90
post #76

Stuff like typing "10j" made sense when text editing was high latency. Nowadays you can just hold j and stop precisely where you wanted to, even if you're ssh'ing into a server on the other side of the country. There's nothing wrong with it (and in fact I prefer it because of the 0 finger movement required). The only times I use "precise" movement commands like that is when I'm in the odd situation of having to ssh i…

It's slower to "stop precisely"on key hold/release, so 10j still makes more sense, only for a few lines tapping J a few times makes more sense, but not 10-20

It can be about as fast if you set key repeat delay to minimum and repeat speed to maximum. I used it for a while and got quite precise with it. Works well until someone else needs to use your computer for a moment...
Post reply on HN