Write Vim macros in a buffer with live preview