I have two code files open and I'm trying to write a macro for moving code from one file to the other. I start recording the macro in file A. After I enter all of the commands I need in file A, I switch into file B using
gt. After I've switched, the commands that I run in file B are not included in the macro. If I try to end my recording with
q while in file B, I instead initiate a new recording. When I go back to file A, my original macro is still recording. If I stop that recording and run the macro it only does the commands I entered in file A, but that does include the command to switch files.
If it helps, I'm using the vscodevim extension for vim emulation in Visual Studio Code
Is it possible for me to record commands across multiple files into a macro? If so, how?
normcommands than recording a macro.
normcommands is the best way to do what I need.