Thanks for the suggestion. My .vimrc currently includes:
set undofile
set backup
set swapfile
set undodir=$HOME/.vim/tmp/undo
set backupdir=$HOME/.vim/tmp/backup
set directory=$HOME/.vim/tmp/swap
" Make those folders automatically if they don't already exist.
if !isdirectory(expand(&undodir))
call mkdir(expand(&undodir), "p")
endif
if !isdirectory(expand(&backupdir))
call mkdir(expand(&backupdir), "p")
endif
if !isdirectory(expand(&directory))
call mkdir(expand(&directory), "p")
endif
I've verified that swap, backup, and undo files are created in my home directory and not in the mounted Box directory. As such, I'm not sure of the origin of these files, which are created on every save, but they are only created by vim when saving on the rclone mount.
I am using the latest stable and couldn't reproduce it as I tried on my mount as well. I've always seen .swp files for vi so not sure what/how that odd 5612 file is being made.
You might want to limit cache size and location. Otherwise it can grow forever:) but this should be enough if there are no other issues. Defaults are quite good.