How do I automatically backup remote files after connecting via Putty or SSH?
Vim doesn’t seem to create backup locally for those files…
Below is the setting for my vimrc
set backup
set backupdir=~/backup/
set dir=~/backup/
It works for my local files by the way.
If you use vim on the remote machine, you have to also set the settings there. You should copy your .vimrc to the other machine. One easy way for this is
scp ~/.vimrc user@server:~