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.
Reminds me of the time used a private gitlab repo for a freelance contract where I was working alone. I used it to keep track of tasks in issues. Some issues in this repo really turned into me talking to myself
The client requested carrots but after delivery tells you they actually meant zucchini. You think it is strange to put zucchinis in a salad but still meticulously go through their dish and replace all carrots with zucchinis. Upon delivery they ask why it tastes weird and you realize they meant cucumber not zucchini and they got the two confused.
programmerhumor
Active
This magazine is from a federated server and may be incomplete. Browse more on the original instance.