We look at the pattern vim uses for its commands and we find out it is (number) verb (number) noun.
We look at a few examples of how to do things with a single line command like 2d3l (delete 2 times 3 characters). The different examples are to demonstrate the pattern Vim uses for most commands.
We then see that greater than sign is for indent, but we can't just press the greater than sign key by itself. Greater than sign, greater than sign, is used indent the current line, greater than sign2j is indent the current line and the next 2 lines. And 2greater than sign2j does not follow the standard Vim pattern.
We can repeat the indent 2 times by pressing . after indent, and then we see that . will repeat any single line command, and that is why the single line command is so important to understand.
See the complete Vim playlist at:
https://www.youtube.com/watch?v=1lzXr-MztOU
See the complete Vim playlist in a single video at:
https://www.youtube.com/watch?v=3G6kAEvbv2A
Website link:
https://thefrugalcomputerguy.com/linux/seriespg.php?ser=10002
8 Comments