Search code examples
vimvim-plugin

How to save and sync vim registers (macros)


How do I save and sync vim registers? I'm interested in macros, but I know macros are saved to registers, so that's what needs to be sync'd.

This question seemed to assume that we only ever use vim with one workstation, while I need to sync to many.

I've tried to install marvim without success. But I wonder if there's another project or way to accomplish it, and if anyone has advice on syncing between many servers.


Solution

  • You can save your macros in your vimrc as described in this quesion on vim stackexchange. That is also suggested in one of the answer of the question you linked. Then you sync your vimrc to all the servers you want with git as described e.g. in this SO question or use any other tool of your preference.