In (neo)vim you can make macros by just typing the comands into a text buffer and than yanking them into a register. For example if you wanted to make a macro to save and compile a go project you could type the vim commands like so:
:w
:!go run .
and than select the whole thing and press "rd to copy it into register r ant than run it with @r.