Viewing a single comment thread. View all comments

SirThunderDump t1_j5x0uy0 wrote

I pick one thing that I suck at, or am slow at with VIM. I then learn the command, and practice the hell out of it until it's natural. Then rinse, wash, and repeat.

3

H9419 t1_j5y44ya wrote

That works really well for beginners to get started, but after you really understand and use Regex, the rest is just learned from discussions among colleagues and only remembering what seems useful.

There's a grammar to vim and it's easy once you are able to distinguish between the verb and adjective of the same character in vim

2

therealphatmike t1_j5z9r7r wrote

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.

1