improved path creation in powershell readme example
This commit is contained in:
parent
c3b6b7c297
commit
4c9da08b99
|
@ -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"
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user