therealphatmike
therealphatmike t1_j5wzmp8 wrote
Reply to comment by QuillanFae in I don't know why I'm like this by AtLeastOneCat
Be ok with sucking for a month. Use vim tutor to learn and navigate the basics. But then commit to learning 1-2 new cool and helpful things a day. In just a few weeks you’ll be crushing it.
Also relative line numbers. They’re necessarily navigating a file quickly and effortlessly
therealphatmike t1_j5wyznx wrote
Reply to comment by Tom_Q_Collins in I don't know why I'm like this by AtLeastOneCat
Its wonderful
therealphatmike t1_j5tokjn wrote
Reply to I don't know why I'm like this by AtLeastOneCat
Between this, espresso, and vim … I’m probably a miserable person to be around 😂
therealphatmike t1_j5z9r7r wrote
Reply to comment by H9419 in I don't know why I'm like this by AtLeastOneCat
u/QuillanFae like this user pointed out, there’s a grammar to vim commands. Once you notice the pattern you can start to put things together from the different commands you know. Like :diw :ciw do slightly different actions the word the cursor is inside. And you change the object the action is taken on. Like need to rewrite a whole block? Go somewhere inside it and run :ci{ and it’ll remove everything inside the curly braces and put you in insert mode in between them, where :di{ would just remove the content between the braces but leave you in normal mode.