New answers tagged


There is a vim plugin called vis.vim which allows this functionality. I found it on this stack overflow post:


I'm not sure what was the problem then, but on Vim 8.1.1600 (on macOS Catalina), the following works for me now. Example C file: #include <stdio.h> int main() { printf("%d", 5); return 0; } Vim sequence to record the macro- Ensure you are in normal mode Press qg to start recording the macro for the key g Press :w and then press ...

Top 50 recent answers are included