Live data from Hacker News

Show HN: Hardtime.nvim – break bad habits and master Vim motions

github.com

41–50 of 89 posts

Re: Show HN: Hardtime.nvim – break bad habits and master Vim motions

#42
post #26
post #21

I'm a bit disappointed that this can only be used with NeoVim yet it claims to help you master Vim. Sorry not meant to be a criticism. Maybe this is the last push for me to switch to using NeoVim.

I waited as well long time, but after switching my tooling and usage has improved a lot since lot of progressive community around modern tools that NVim supports. So I encourage to take a look. I still keep vim configuration around but I've never felt the need for going back.

I'm making my (probably) 4th attempt in migrating from regular Vim to NeoVim, and while it's better now, the learning curve is still steep as hell. Going the kickstart.nvim route this time and boy, half of the stuff there is pure magic. Honestly feels like reading Nix incantations. Dynamic nature of Lua makes it even harder. Thankfully ChatGPT is pretty good in generating configs.

Re: Show HN: Hardtime.nvim – break bad habits and master Vim motions

#43

A somewhat more “complete” solution that doesn’t give you hints (thus doesn’t rely on the plugin support for all of vim’s vast functionalities), but conditions your instincts to get better: increase the latency of my whole terminal (c.f. https://unix.stackexchange.com/questions/778196/how-to-add-d... ) (also see the comment) by running my terminal session on a ssh session into my own machine through a ProxyCommand of…

see I just run emacs to get the same effect

Re: Show HN: Hardtime.nvim – break bad habits and master Vim motions

#45

I’ve been using vim for 10+ years. However I honestly don’t see the downside of repeating h or j to move up/down (with the key repeat delay adjusted to a small value). It’s more intuitive than using say 15j, which involves recognizing some number in the screen and then look at the keyboard to type because the upper number row cannot be easily touch typed

You don't need to use the upper row, bind numbers to right thumb modifier + numpad-like uio jkl m,.

Or instead of 15j use another jump to command that accepts those letters as numbers

Or have some jump type of command that displays a-z labels 1 per row in the middle and you can jump without numbers and without shifting focus to the gutter

But yes, the most basic motion will still be more "intuitive"

Re: Show HN: Hardtime.nvim – break bad habits and master Vim motions

#46

I’ve been using vim for 10+ years. However I honestly don’t see the downside of repeating h or j to move up/down (with the key repeat delay adjusted to a small value). It’s more intuitive than using say 15j, which involves recognizing some number in the screen and then look at the keyboard to type because the upper number row cannot be easily touch typed

Agreed. I wonder if this is somewhat revealing of the mental processes of the creators. To me, if my cursor is a few lines away from another line, the easiest way for me to get there is by either using h/j a few times, or looking at the absolute line number and doing that with gg. Relative jumps are only useful to me in macros. Calculating a relative jump myself would 100% pull me out of the flow state where I just w…

Why would you ever calculate relative jump yourself instead of having relative line numbers in the gutter?

And yes, for a few lines it's fine, the plugin has this number configurable.

Re: Show HN: Hardtime.nvim – break bad habits and master Vim motions

#47

I always find it funny when people say to not repeat h-l, w-W keys for horizontal movement. No way I am starting to count how many characters there are in front of my cursor just to have the satisfaction of typing "31-l"... I am totally going to spam some 2w 3w llll until I reach the desired position.

>No way I am starting to count how many characters there are

You don't have to. There are many ways to do a jump without counting. Some of the require plugins like flash.nvim, some do require pressing `;` multiple times

Re: Show HN: Hardtime.nvim – break bad habits and master Vim motions

#48

I always find it funny when people say to not repeat h-l, w-W keys for horizontal movement. No way I am starting to count how many characters there are in front of my cursor just to have the satisfaction of typing "31-l"... I am totally going to spam some 2w 3w llll until I reach the desired position.

`set relativenumber` to see where you’re jumping

Re: Show HN: Hardtime.nvim – break bad habits and master Vim motions

#49

I always find it funny when people say to not repeat h-l, w-W keys for horizontal movement. No way I am starting to count how many characters there are in front of my cursor just to have the satisfaction of typing "31-l"... I am totally going to spam some 2w 3w llll until I reach the desired position.

At first I had to count characters. Over time, it becomes intuitive. In the same way that if someone holds up three fingers you don't count "one, two, three", you immediately perceive that they are holding up three fingers.

For numbers under 10, I usually hit the right amount. For numbers around 30, I might be off by one to five, but move on from then. When I want to remove similar prefixes from multiple non-consecutive lines, I might use things like 31x, go to the next instance (maybe continuing a search with n), and press period.

Honestly though, if you're moving forward 31 characters, there's often an easier approach, like 4w (move forward three Words). Again, at first I had to consciously think about which combination to use. Over time it becomes second nature.

I still use jjjj sometimes. It's imperfect, but at least it's the human that's the limiting factor, and not the software.

Re: Show HN: Hardtime.nvim – break bad habits and master Vim motions

#50

I always find it funny when people say to not repeat h-l, w-W keys for horizontal movement. No way I am starting to count how many characters there are in front of my cursor just to have the satisfaction of typing "31-l"... I am totally going to spam some 2w 3w llll until I reach the desired position.

I think it's more about getting used to f-F,t-T,A,I, and which can be quicker especially with code. You can also add easymotion or similar plugins for the powered version of those.

TIL! `f` looks really useful, thanks.
Post reply on HN