I have three macros that I have created separately over time. a performs a search and replace, b adds tags to every line and c appends text at the beginning and the end of the file.I execute them like this:@a:%norm! @b@cHow can I execute them in this order without starting each one separately?
How to execute several macros with one command?
macro
Since you are using a macros why not use another macro to execute the other three!let @q = @a:norm! @b\<cr>@c@qNote: I am using :let to set the q register here, but you could just as easily record a macro with q, e.g. qq@a:norm! @b^M@cq (where ^M is pressing return).