jaredpar/VsVim — Issue #729: Macros not running on save
Author: jnothstine
Created: 2012-01-17 18:43:30+00:00
State: open

I have a macro that is supposed to run each time I save a file. When I press the blue disk icon to save the file, the macro runs correctly. When I use :w to save the file, the macro does not run.

I have installed a macro in VS to execute whenever a file is saved. Here is the name of that macro:

Public Sub DocumentEvents_OnDocumentSaved(ByVal Document As EnvDTE.Document) Handles DocumentEvents.DocumentSaved

The macro should be ran whenever the file is saved but doesn't on :w.

I hope this is enough to explain the problem. Please let me know if you need more information and I can try to get more. My knowledge is pretty limited on this. I am using macros that were given to me to use.