heyy! <3 today i, kttysoul, will show yall how to use macros in vim. macros are a much quicker way to enter commands, specially these that can be repetitive.
so lets get started! first, registers are memory slots that will temporarily allow text or commands to be stored safely there. and macros are stored in registers.
example: to record a macro, we press q, then the register letter, which has to be a to z, e.g.: @c will store the macro named c in register 'c', and vim will report it as: "recording @c". then you have to press the letter of the command you want to store in that particular macro, then press q again, and finally, the letter of the register in which the macro is stored, in this example, register c, so press 'c', and that's it! now yall know how to use macros!! see ya next timeee, much loveyyy!! <3