Live data from Hacker News

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

github.com

71–80 of 89 posts

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

#71
post #70
post #68

Earlier quoted context omitted.

How is this easier than jumping straight to the line with absolute numbers?

15j is easier than 4879gg. It’s a little bit quicker on big files—not a huge difference.

The information is also more relevant. How many lines a function or block has might make a difference, but the absolute file position is, more often than not, irrelevant.

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

#72

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.

Agree. vim-sneak is the answer to this, you can reach anywhere with maximum 3 key presses. It's very intuitive and easy to pick up. If I had to pick only one Vim plugin it would be sneak. https://github.com/justinmk/vim-sneak

I quite like leap.nvim:

https://github.com/ggandor/leap.nvim

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

#73

The way I like to explain vim to people new to it is; start from "the inside out" on a QWERTY keyboard and assume most people are right-handed. By that, I mean the hjkl navigation keys are the first kind of navigation people want to do and are conveniently easily typed with the right hand in a traditional "home-row" position. Next, very common editing commands are associated with home-row keys associated with the lef…

Interestingly enough, many games on PC standardized the WASD keys for moving, which might be seen as "left-handed". However when touch-typing, there isn't really a difference between left and right hands.

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

#74
post #26

Earlier quoted context omitted.

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.

What's the difficulty to switch from Vim to Neovim?

I switched few years ago, and the switch was instant.

Afaik Neovim is fully backward compatible, unless maybe for some obscure features.

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

#75

This looks great! Is it compatible with lazyvim's installations? Because I could not get it working and I suspect it is conflicting with some other plugin

There is a conflict with plugin "FastFold". But the easy fix is to disable the onoremap and xnoremap made in that plugin.

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

#76

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.

Some nice explanations of f and t:

https://stackoverflow.com/questions/12495442/what-do-the-f-a...

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

#77

The way I like to explain vim to people new to it is; start from "the inside out" on a QWERTY keyboard and assume most people are right-handed. By that, I mean the hjkl navigation keys are the first kind of navigation people want to do and are conveniently easily typed with the right hand in a traditional "home-row" position. Next, very common editing commands are associated with home-row keys associated with the lef…

[deleted]

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

#79
post #73

The way I like to explain vim to people new to it is; start from "the inside out" on a QWERTY keyboard and assume most people are right-handed. By that, I mean the hjkl navigation keys are the first kind of navigation people want to do and are conveniently easily typed with the right hand in a traditional "home-row" position. Next, very common editing commands are associated with home-row keys associated with the lef…

Interestingly enough, many games on PC standardized the WASD keys for moving, which might be seen as "left-handed". However when touch-typing, there isn't really a difference between left and right hands.

WASD is only lefty if you don't use the mouse. Otherwise, WASD really sucks when using a lefty mouse.

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

#80

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.

I used to be a big fan of easymotion until I discovered that / is also a motion and that with inline search enabled you can use CTRL-G to cycle through results.

Example: d / foo, first foo will be highlighted, use CTRL-G to select the next one if not correct (repeat if necessary; CTRL-T cycles backwards), ENTER to delete until highlighted section.

Unfortunately CTRL-G is not implemented in IdeaVIM.

Post reply on HN