I want to have a backup folder with the unique backups (*~ files) like I have with my undo history. For undo I can use:
set undofile
set undodir=~/.vim/.undo//
to get unique files due to the '//
' ending. Is there a way to do the same for my backup files?
set backup
set backupdir=~/.vim/.backup//
just create 'filename~
' copies, so they will be overwritten if I work on files with the same name.
I am using Vim 7.4.488