代码拉取完成,页面将自动刷新
同步操作将从 LER0ever/EverVim 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
echo "Welcome to EverVim, a powerful & modern vim distribution"
echo "Booting EverVim ..."
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) {
echo "Setup script needs administrator priviliges to create symlinks"
exit
}
$invocation = (Get-Variable MyInvocation).Value
$currentdir = Split-Path $invocation.MyCommand.Path
$EVERHOME = $currentdir + "\home\EverVim\"
echo "Creating Directories ..."
md $EVERHOME
md $EVERHOME\.vim\autoload
md $EVERHOME\.vim\bundle
md $EVERHOME\.config
echo "Downloading Vim-Plug ..."
$uri = 'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
(New-Object Net.WebClient).DownloadFile($uri, $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($EVERHOME + "\.vim\autoload\plug.vim"))
echo "Soft-Linking Vim/NeoVim Config ..."
Push-Location -Path $EVERHOME
cmd /c mklink .vimrc ..\..\.vimrc
cmd /c mklink .vimrc.bundles ..\..\.vimrc.bundles
cmd /c mklink .vimrc.before ..\..\.vimrc.before
cmd /c mklink .gvimrc ..\..\.vimrc.gui
Push-Location -Path .config\
cmd /c mklink /J nvim\ ..\.vim\
Push-Location -Path nvim\
cmd /c mklink init.vim ..\..\.vimrc
cmd /c mklink ginit.vim ..\..\.gvimrc
Pop-Location
Pop-Location
Pop-Location
echo "All done with the setup. Now put your vim in the right place and click on the bat."
echo "Type :PlugInstall in your vim to complete the plugin installation"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。