this post was submitted on 02 Mar 2024
973 points (98.4% liked)

linuxmemes

20751 readers
1002 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
 
top 44 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 6 months ago (1 children)

Can someone suggest a good way to lean VIM motions? I’ve been trying to use it as a VS Code extension but I don’t feel like I’m making any progress.

I want to move away from VSCode but I’m not comfortable doing that until I have a better understanding. :/

[–] [email protected] 4 points 6 months ago (1 children)

Try vimtutor on the commandline.

Interactive tutorial that takes place in vim itself :)

[–] [email protected] 1 points 6 months ago

Thanks! I’ll do that! I guess I’m missing out since I was using a Vim extension rather than Vim itself.

[–] [email protected] 5 points 6 months ago

Neuralink? I use VIM

[–] [email protected] 3 points 6 months ago* (last edited 6 months ago) (1 children)

I bet he doesn't even use SOAP after going to the toilet.

[–] [email protected] 1 points 6 months ago

I typically hope to get rid of SOAP by going to the toilet.

[–] [email protected] 8 points 6 months ago

I used to be like Jarvis here, but I'm a convert. I actually was tired of using my mouse all the time, so one day while writing up some docs, I decided to give Vim a try.

Honestly, I hate to say it but, I can't go back. It's so nice to be able to do so much from the keyboard alone.

[–] [email protected] 1 points 6 months ago

Literally me but Blender keybindings. I can only learn so many shortcuts, imma stick to Nano.

[–] [email protected] 5 points 6 months ago (1 children)

I have a plugin for that: which key (or something). It's easier if you just configure all keys yourself.

[–] [email protected] 1 points 6 months ago
[–] [email protected] 52 points 6 months ago (1 children)

Last night Spotify decided to dredge up "November Rain" by GnR and I realized that I still have neurons devoted to a perfect memory of the lead flute part of a rock power ballad that I listen to once every 5 years. I don't even play the flute.

And that flute part is the reason I've never quite gotten the hang of buffers in Vim.

[–] [email protected] 21 points 6 months ago

Just throw out your name. You never call yourself by it, and they have these nifty little cards they give you to remind you of who you are and what you look like!

[–] [email protected] 139 points 6 months ago (1 children)
[–] [email protected] 16 points 6 months ago

I prefer this version.

[–] [email protected] 36 points 6 months ago (1 children)

I feel like it's more of a muscle memory rather than remembering each keybindings.

Just like my old phone's pattern lock. I forgot what the hell I drew there, but when I picked it up, my thumb just put that in.

[–] [email protected] 5 points 6 months ago* (last edited 6 months ago)

What a waste of muscle memory space

J/k but not really

[–] [email protected] 14 points 6 months ago (3 children)
[–] [email protected] 8 points 6 months ago (3 children)
[–] [email protected] 1 points 6 months ago (2 children)
[–] [email protected] 1 points 6 months ago

The only thing better than vim keybindings for programming is vim keybindings for org mode (I know neovim has some org mode stuff but it isn’t the same as full blown org mode in emacs).

[–] [email protected] 1 points 6 months ago

Yeah, evil mode worked pretty well when I tried it. But then I kept hitting things that just made me want to go back to neovim.

[–] [email protected] 3 points 6 months ago (2 children)
[–] [email protected] 1 points 6 months ago (1 children)

C-x C-Y/Z

For me with this position even C-D/E would be uncomfortable. So how to go about that?

[–] [email protected] 2 points 6 months ago (1 children)

Use the opposite hand to press C?

[–] [email protected] 2 points 6 months ago

Oh yeah. I literally have never pressend this button before and therefore forgot about it. blushes

[–] [email protected] 1 points 6 months ago (1 children)

Huh. That's neat. Can't say whether it works, as I Ctrl with my thumb using a thumb cluster on my Dactyl Manuform

[–] [email protected] 1 points 6 months ago

It takes a bit of practice, but then it's great.

[–] [email protected] 1 points 6 months ago (2 children)

pinkies? well everyone has to press enter

but Caps-Lock is rare occasion key

[–] [email protected] 2 points 6 months ago

My enter key is on my dactyl manuforms thumb cluster

[–] [email protected] 3 points 6 months ago (2 children)
[–] [email protected] 1 points 6 months ago

Once you do this there's no coming back.

[–] [email protected] 1 points 6 months ago

Sorry, but why?

I'm used to Ctrl+Shift as palm combination, so I can't figure why skip Ctrl

[–] [email protected] 3 points 6 months ago (1 children)

Um akshually emacs is bad becuz it does follow the unix philosophy

[–] [email protected] 6 points 6 months ago (1 children)
[–] [email protected] 3 points 6 months ago
[–] [email protected] 65 points 6 months ago (4 children)

This is why I don't use vim. Can't spend all that mental energy on keybindings when I could spend it far more productively on KDE configuration options.

[–] [email protected] 8 points 6 months ago* (last edited 6 months ago)

What do you mean spend mental energy on keybindings? Sure it will take you a couple times to do them to remenber them but after that you will just know them without having to think about them.

I don't know if it took me more than a couple hours to learn enough keybindings to be more productive than in vscode, and later on I just learned more as I need them and am now able to use them without thinking about it.

I used to spend more time searching for the button to click with a mouse and remembering in what menu it was than it took me to learn and use vim keybindings.

But this is all diff from person to person.

[–] [email protected] 38 points 6 months ago* (last edited 6 months ago) (1 children)

You guys are all insane, and need to find a more productive use of your time and energy.

Queues up another ranked game of League of Legends

[–] [email protected] 7 points 6 months ago

Y’all just waste your time obsessing over dumb shit turns on tv and binges shows for 5 hours

[–] [email protected] 6 points 6 months ago (1 children)

You could either spend hundreds of hours being a slower programmer in order to learn something that squeezes a diminishing returns save on time. Or you can be a fast programmer now, albeit marginally slower than one that knows vim.

[–] [email protected] 14 points 6 months ago* (last edited 6 months ago) (1 children)

Any amount of time I've saved using neovim has easily been offset by the amount of time I've spent configuring it. Wouldn't change it though. It's just fun to use, and there's something nice about using an editor that I configured from the ground up. You can also just use a neovim distribution if you don't care to set it up yourself.

The keybindings aren't hard though, and I would say that learning vim keybindings has had a net positive impact on my efficiency overall. They become second nature more quickly than you would think. Most actions are muscle memory at this point. Maybe a week of frustration, then you'll be back up to speed. Then you get faster and more fluid from there.

[–] [email protected] 2 points 6 months ago

Maybe I’m just lazy, I’ve only invested 10-15 hours total into my config.

Once I got it working, I’ve never bothered to really even touch it. (I probably should, it’s most likely months of out of date…just like my NixOS config…)

Next time I make changes will probably be when I update to 0.10 for inlay hints and set that up along with attempting to fix that error message that randomly pops up every time I start Neovim.

Also probably not the typical Neovim config experience, but I’ve configured it enough to get of my way, now I just want to write code.

[–] [email protected] 8 points 6 months ago

Ha! Ouch. Too true. Also, wezterm. I’ve been changing my config everyday for days now.