Added support for spaces in backups name
This commit is contained in:
parent
9b65182eec
commit
e531eb9cab
2
vimrc
2
vimrc
|
@ -112,7 +112,7 @@ let g:WebDevIconsNerdTreeGitPluginForceVAlign = 1
|
||||||
|
|
||||||
" BACKUPS ###########################################################{{{
|
" BACKUPS ###########################################################{{{
|
||||||
set dir=$HOME/.vim/swp//
|
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')
|
if exists('+undofile')
|
||||||
set undofile
|
set undofile
|
||||||
|
|
Loading…
Reference in New Issue