2022-04-03 23:21:00 +08:00
|
|
|
Execute ( SpaceVim plugin: mkdir.vim ):
|
|
|
|
augroup mkdir_test
|
|
|
|
au!
|
|
|
|
autocmd BufWritePre * call SpaceVim#plugins#mkdir#CreateCurrent()
|
|
|
|
augroup END
|
|
|
|
let tempfile = tempname() . '/test/test'
|
2022-09-11 21:07:23 +08:00
|
|
|
" '/home/runner/.cache/SpaceVim/undofile' for undo file: permission denied
|
|
|
|
let undofile = &undofile
|
|
|
|
set noundofile
|
2022-04-03 23:21:00 +08:00
|
|
|
exe 'e' tempfile
|
|
|
|
w
|
|
|
|
AssertEqual filereadable(tempfile), 1
|
|
|
|
bwipeout
|
2022-09-11 21:07:23 +08:00
|
|
|
let &undofile = undofile
|
2022-04-03 23:21:00 +08:00
|
|
|
unlet tempfile
|
2022-09-11 21:07:23 +08:00
|
|
|
unlet undofile
|
2022-04-03 23:21:00 +08:00
|
|
|
augroup mkdir_test
|
|
|
|
au!
|
|
|
|
augroup END
|
|
|
|
|
|
|
|
|
|
|
|
|