1
In a number of cases I have some vim script that I only want to execute when it is not being run in a macro. For example, in some cases I blink the cursor to remind myself where it is now (which is pointless when run in a macro, and just causes the macro to take 10x as long).
So for these cases I would like to check whether it is running as a macro, and avoid doing the unnecessary operation in this case. I scoured help for a bit but could not find a flag to detect this. Is this possible?
How do you trigger the blinking? If it's a mapping, don't use it. If it's an autocmd, use an event that's not triggered during a macro like CursorHold. Or start every macro with a command that isables your blinking function temporarily. – romainl – 2013-11-04T07:06:27.877