i'm looking vim script that, when save, duplicates changes second directory. in case second directory on vm can ssh to. suggestions?
if want manually add vimrc:
command! duplicatefileremotely !scp % user@remotehost:~/mylocation/
then call in command mode:
:duplicatefileremotely
if want every time file saved add vimrc well:
autocmd! bufwritepost * :duplicatefileremotely
Comments
Post a Comment