mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 17:50:04 +08:00
23 lines
520 B
Plaintext
23 lines
520 B
Plaintext
Execute ( SpaceVim plugin: mkdir.vim ):
|
|
augroup mkdir_test
|
|
au!
|
|
autocmd BufWritePre * call SpaceVim#plugins#mkdir#CreateCurrent()
|
|
augroup END
|
|
let tempfile = tempname() . '/test/test'
|
|
" '/home/runner/.cache/SpaceVim/undofile' for undo file: permission denied
|
|
let undofile = &undofile
|
|
set noundofile
|
|
exe 'e' tempfile
|
|
w
|
|
AssertEqual filereadable(tempfile), 1
|
|
bwipeout
|
|
let &undofile = undofile
|
|
unlet tempfile
|
|
unlet undofile
|
|
augroup mkdir_test
|
|
au!
|
|
augroup END
|
|
|
|
|
|
|