1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-13 02:05:40 +08:00

Fix home dir

close #2880
This commit is contained in:
wsdjeg 2019-09-21 15:03:54 +08:00
parent d7cef91150
commit ecf73e3e7e

View File

@ -41,9 +41,9 @@ else
return resolve(a:path) return resolve(a:path)
endfunction endfunction
endif endif
let g:_spacevim_root_dir = fnamemodify(s:resolve(fnamemodify(expand('<sfile>'), let g:_spacevim_root_dir = escape(fnamemodify(s:resolve(fnamemodify(expand('<sfile>'),
\ ':p:h:h:gs?\\?'.((has('win16') || has('win32') \ ':p:h:h:gs?\\?'.((has('win16') || has('win32')
\ || has('win64'))?'\':'/') . '?')), ':p:gs?[\\/]?/?') \ || has('win64'))?'\':'/') . '?')), ':p:gs?[\\/]?/?'), ' ')
lockvar g:_spacevim_root_dir lockvar g:_spacevim_root_dir
if has('nvim') if has('nvim')
let s:qtdir = split(&rtp, ',')[-1] let s:qtdir = split(&rtp, ',')[-1]