improved path creation in powershell readme example

This commit is contained in:
fourtf 2020-04-04 23:38:14 +02:00
parent c3b6b7c297
commit 4c9da08b99

View File

@ -44,13 +44,11 @@ file as suggested [here][auto].
###### Windows (PowerShell) ###### Windows (PowerShell)
```powershell ```powershell
md ~\vimfiles\autoload New-Item ${env:USERPROFILE}\vimfiles\autoload -ItemType Directory -Force
$uri = 'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' $uri = 'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
(New-Object Net.WebClient).DownloadFile( (New-Object Net.WebClient).DownloadFile(
$uri, $uri,
$ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath( "${env:USERPROFILE}\vimfiles\autoload\plug.vim"
"~\vimfiles\autoload\plug.vim"
)
) )
``` ```