From e531eb9cabea5fc0b96699dab889236afb4d3a6a Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Mon, 13 Feb 2017 10:59:54 +0100 Subject: [PATCH] Added support for spaces in backups name --- vimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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