Vim
Emmet
Emmet uses the , key. Press twice for templates. Double comma completes html:5 or h1 or p, etc…
Macros
qarecords a macro at@a.- To stop recording press
qagain. - To add to
.vimrc:"qapastes the macro.
Apply command to whole file
:%! cmd %s