This example is for JavaScript, but the same principles apply for other languages.
00:00 - Inefficiency
00:18 - Recording a Macro
01:06 - Saving the Macro as Configuration
03:06 - Loading Macro only for certain File Types
NOTE: While the ^[ (Escape) is a shorthand for the Escape character, if you type ^[ directly, Vim does not convert it to ASCII code 27, and it doesn't invoke the actual Escape character in this context.
My website: https://dimitech.io
#neovim #vim #macro