mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:10:04 +08:00
fix some issues on windows (#3387)
This commit is contained in:
parent
4938183571
commit
5d4c83c6c2
@ -41,9 +41,9 @@ else
|
||||
return resolve(a:path)
|
||||
endfunction
|
||||
endif
|
||||
let g:_spacevim_root_dir = escape(fnamemodify(s:resolve(fnamemodify(expand('<sfile>'),
|
||||
let g:_spacevim_root_dir = fnamemodify(s:resolve(fnamemodify(expand('<sfile>'),
|
||||
\ ':p:h:h:gs?\\?'.((has('win16') || has('win32')
|
||||
\ || has('win64'))?'\':'/') . '?')), ':p:gs?[\\/]?/?'), ' ')
|
||||
\ || has('win64'))?'\':'/') . '?')), ':p:gs?[\\/]?/?')
|
||||
lockvar g:_spacevim_root_dir
|
||||
if has('nvim')
|
||||
let s:qtdir = split(&rtp, ',')[-1]
|
||||
|
@ -80,7 +80,7 @@ if (!(Test-Path "$HOME\.SpaceVim")) {
|
||||
echo ""
|
||||
|
||||
if (!(Test-Path "$HOME\vimfiles")) {
|
||||
cmd /c mklink $HOME\vimfiles $repo_path
|
||||
cmd /c mklink /D $HOME\vimfiles $repo_path
|
||||
} else {
|
||||
echo "[OK] vimfiles already exists"
|
||||
sleep 1
|
||||
@ -88,7 +88,7 @@ if (!(Test-Path "$HOME\vimfiles")) {
|
||||
echo ""
|
||||
|
||||
if (!(Test-Path "$HOME\AppData\Local\nvim")) {
|
||||
cmd /c mklink "$HOME\AppData\Local\nvim" $repo_path
|
||||
cmd /c mklink /D "$HOME\AppData\Local\nvim" $repo_path
|
||||
} else {
|
||||
echo "[OK] $HOME\AppData\Local\nvim already exists"
|
||||
sleep 1
|
||||
|
Loading…
Reference in New Issue
Block a user