The ~ files are backups. If like me you are fed up with them being left in all your dirs you can turn backups off or have them put in a special backup dir. Both configurable in ~/.vimrc:
Code:
set backup " keep a backup file
set backupdir=$HOME/.vimbak
or
Code:
set nobackup " do not keep a backup file, use versions instead