I changed vim backup directory to be stored on .backup
folder in my dotfiles local repo
set undodir=$HOME/.dotfiles/backup//
.
it works well as expected but i want to separate actual dotfiles backups to be saved in a new directory named dot-files
inside of .backup
( .backup/dot-files
)
eg: if the file is .tmux.conf
, .vimrc
, .bashrc
etc.. it will be saved in the backup/dot-files
but if it is an ordinary file just save it in the backup
directory.
is this doable with vimscript?
~/Projects/dotfiles
what i want is to store backup files in the subdirectory of dotfiles which is categorized as~/dotfiles/.backup/dot-files
(for files starting with (.) ) and~/dotfiles/.backup/
( for all files without (.)) Btw~/.backup
is ignored in version control.. what i want is a separate backups for (.)files so i can easily find them when i need it