diff --git a/vimrc b/vimrc index 913280b..5bf224b 100644 --- a/vimrc +++ b/vimrc @@ -112,7 +112,7 @@ let g:WebDevIconsNerdTreeGitPluginForceVAlign = 1 " BACKUPS ###########################################################{{{ set dir=$HOME/.vim/swp// -autocmd BufWritePost * :silent execute ':w! ' ."$HOME/.vim/backups/" . escape(substitute(expand('%:p'), "/", "%", "g"), "%") +autocmd BufWritePost * :silent execute ':w! ' ."$HOME/.vim/backups/" . substitute(escape(substitute(expand('%:p'), "/", "%", "g"), "%"), ' ', '\\ ', 'g') if exists('+undofile') set undofile