Added support for spaces in backups name

This commit is contained in:
Thomas FORGIONE 2017-02-13 10:59:54 +01:00
parent 9b65182eec
commit e531eb9cab
No known key found for this signature in database
GPG Key ID: 2A210FFC062E00C3
1 changed files with 1 additions and 1 deletions

2
vimrc
View File

@ -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