31

I tried a couple of times and it's still magic to see anyone able to use it properly

I'll just stick to VScode for now I guess

top 15 comments
sorted by: hot top controversial new old
[-] datendefekt@lemmy.ml 3 points 1 year ago
[-] pete@lemmy.world 2 points 1 year ago

If you are actually interested in learning, it's not too hard, you'll be slow for a little bit but it pays off in the end.

First, understanding there are actions and objects and quantifiers. Actions are what you do to objects, so when you want to (d) delete, that is the action, then you'd want to specify a object. ($) being the end of the line, (^) start, (w) is word, (j), (g) is top of file and so on, these are already the words you'll use to move along as well.

Then, for many of these we can add quantifiers, i.e. repeat x number of times.

So 3dw is delete three words and 3dj is three lines down and so on. If you want to select, it's just swap v for d and off to the races.

Once you learn the basic concept, you really only need a few actions and a few objects to be functional.

Print/find/make a cheat sheet and put it up by your monitor or keyboard and give yourself a week.

Also, checkout the vimtudor or vim golf and play the game for a few minutes.

[-] jakoma02@czech-lemmy.eu 1 points 1 year ago

By the way, the vim extension for VScode is great, so why not combine both.

[-] branchial@feddit.de 1 points 1 year ago

Emacs is my favourite IDE. I switched to it from vim and never looked back.

[-] BrownPolarBear@lemmy.pt 1 points 1 year ago

somehow I read the last frame as "stop tinkering with your setup, use the bloody mouse and get the job done"

[-] alokir@lemmy.world 1 points 1 year ago

VSCode has a vim plugin, you should try it

[-] priapus@lemmy.one 1 points 1 year ago

Helix > Vim (and neovim)

[-] SinJab0n@mujico.org 1 points 1 year ago
[-] OsrsNeedsF2P@lemmy.ml 1 points 1 year ago

PSA: run vimtutor in the terminal

[-] StV2@lemmy.world 1 points 1 year ago

Oooh that's a handy feature I didn't know about

[-] SemioticStandard@lemmy.ml 1 points 1 year ago

This is exactly how I learned all those years ago, and to this day, I still use vim regularly. As in, literally, I was using it on a server this morning to make some changes. It's just become natural to me now.

[-] jmsw22@lemmy.ml 0 points 1 year ago

I have about 30 years of my career left. That's not enough time for the return on investment of learning VIM to payout.

[-] taj@lemmy.ml 0 points 1 year ago

Eh. I know the basics. I can open, do some very basic editng, save and close. That's about as much as is really needed, right?

[-] MoreIronOre@lemmy.ml 3 points 1 year ago

You can close VIM? Fucking legend.

[-] AlwynEvokedHippest@lemmy.ml 1 points 1 year ago

I can do it, too.

But I learned a few key steps in the process are: hit Ctrl Q, hit Ctrl C, hit Escape a few times, swear, take a breather, remember you’re in VIM and are now (accidentally rather then due to any correct move) out of INSERT mode, type :q.

Then you go to the sofa and put yourself in the fetal position.

this post was submitted on 13 Jun 2023
31 points (100.0% liked)

Programmer Humor

32071 readers
380 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS