Run a macro in all buffers in vim
Posted
by Caleb Huitt - cjhuitt
on Stack Overflow
See other posts from Stack Overflow
or by Caleb Huitt - cjhuitt
Published on 2010-06-11T16:03:55Z
Indexed on
2010/06/11
16:12 UTC
Read the original article
Hit count: 279
I know about the :bufdo
command, and was trying to combine it with a macro I had recorded (@a
) to add a #include in the proper spot of each of the header files I'd loaded. However, I couldn't find an easy way to run the macro on each buffer. Is there a way to execute a macro through ex mode, which is what :bufdo
requires? Or is there another command I'm missing?
© Stack Overflow or respective owner