aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2021-12-01 22:08:45 +0800
committerjdhao <jdhao@hotmail.com>2021-12-01 22:08:45 +0800
commitac69b61c03447ee081993245ebb2348091a58444 (patch)
tree9b9e274bf0ad755bae21b1910a5349f53c661e55
parent0ad051b394c52130dca4174976c5c6fa52948683 (diff)
[v0.6] backupdir will be created by default
No need to create the backupdir manually.
-rw-r--r--core/options.vim5
1 files changed, 1 insertions, 4 deletions
diff --git a/core/options.vim b/core/options.vim
index 477cd17..80313a1 100644
--- a/core/options.vim
+++ b/core/options.vim
@@ -35,10 +35,7 @@ set wildignore+=*.aux,*.bbl,*.blg,*.brf,*.fls,*.fdb_latexmk,*.synctex.gz,*.xdv
set wildignorecase " ignore file and dir name cases in cmd-completion
" Set up backup directory
-let g:backupdir=expand(stdpath('data') . '/backup')
-if !isdirectory(g:backupdir)
- call mkdir(g:backupdir, 'p')
-endif
+let g:backupdir=expand(stdpath('data') . '/backup//')
let &backupdir=g:backupdir
" Skip backup for patterns in option wildignore