39

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

you are viewing a single comment's thread
view the rest of the comments
[-] 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.

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

Honestly that ability to edit stuff sounds really cool to be able to do

Maybe I should start out by making a cheet sheet with your comment in it and just try doing some basic editing with it

this post was submitted on 13 Jun 2023
39 points (95.3% liked)

Programmer Humor

32024 readers
1613 users here now

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

Rules:

founded 5 years ago
MODERATORS