Is there any equivalent to :autoread
when using netrw
to access remote files in vim?
I access files on my work machine remotely via netrw, then when I arrive at work modify the files there. However, if I go back to remote access, it's easy to forget to re-load the file if it's already open in a buffer - if it has been modified on the work machine, then, the next :w
will overwrite any changes I made while at work. I'm looking for a 'safety net' to reduce the risk of data loss (luckily, I haven't lost any yet because of .swp
files, but that's not a very reassuring net).