1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 10:30:05 +08:00

fix some issues on windows (#3387)

This commit is contained in:
Charlie Barto 2020-03-01 16:57:14 -08:00 committed by GitHub
parent 4938183571
commit 5d4c83c6c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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]

View File

@ -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