1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 17:50:04 +08:00

Auto mkdir for spacevim log

This commit is contained in:
wsdjeg 2017-04-07 23:17:01 +08:00
parent 31303d1293
commit 89aaac5f37
3 changed files with 7 additions and 2 deletions

View File

@ -209,7 +209,8 @@ let g:spacevim_checkinstall = 1
" <
let g:spacevim_enable_debug = 0
""
" Set the debug level of SpaceVim. Default is 1.
" Set the debug level of SpaceVim. Default is 1. see
" |SpaceVim#logger#setLevel()|
let g:spacevim_debug_level = 1
let g:spacevim_hiddenfileinfo = 1
let g:spacevim_plugin_groups_exclude = []

View File

@ -41,6 +41,9 @@ function! SpaceVim#logger#error(msg) abort
endfunction
function! s:wite(msg) abort
if !isdirectory(expand('~/.cache/SpaceVim/'))
call mkdir('~/.cache/SpaceVim/', 'p')
endif
let flags = filewritable(s:logger_file) ? 'a' : ''
call writefile([a:msg], s:logger_file, flags)
endfunction

View File

@ -235,7 +235,8 @@ Enable/Disable debug mode for SpaceVim. Default is 0.
<
*g:spacevim_debug_level*
Set the debug level of SpaceVim. Default is 1.
Set the debug level of SpaceVim. Default is 1. see
|SpaceVim#logger#setLevel()|
*g:spacevim_buffer_index_type*
Set SpaceVim buffer index type, default is 0.