I’ve been told that all it takes is to add a macro that doesn’t get lost then you go to another machine is to put something like the following in your .vimrc
.vimrc
let @q = '<paste marco register here>'
Random Reddit Entry