From 5d4c83c6c2312df201e00146fe87d6d80b4b9faf Mon Sep 17 00:00:00 2001 From: Charlie Barto Date: Sun, 1 Mar 2020 16:57:14 -0800 Subject: [PATCH] fix some issues on windows (#3387) --- config/main.vim | 4 ++-- docs/install.cmd | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/main.vim b/config/main.vim index b111f6464..c99497ef5 100644 --- a/config/main.vim +++ b/config/main.vim @@ -41,9 +41,9 @@ else return resolve(a:path) endfunction endif -let g:_spacevim_root_dir = escape(fnamemodify(s:resolve(fnamemodify(expand(''), +let g:_spacevim_root_dir = fnamemodify(s:resolve(fnamemodify(expand(''), \ ':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] diff --git a/docs/install.cmd b/docs/install.cmd index 9230e9f3c..37be0af74 100644 --- a/docs/install.cmd +++ b/docs/install.cmd @@ -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