I’m looking for a vim script that, when I save, duplicates my changes to a second directory. In this case the second directory is on a VM that I can ssh to.
Any suggestions?
I’m looking for a vim script that, when I save, duplicates my changes to
Share
If you want to do it manually add this to your vimrc:
Then call it in command mode:
If you want to do it every time a file is saved add this too your vimrc as well: