Skip to content

Commit 06992bc

Browse files
authored
Update installation instruction for Neovim on Windows (junegunn#634)
Close junegunn#633
1 parent f7e6a86 commit 06992bc

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

README.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,26 @@ A minimalist Vim plugin manager.
2727
[Download plug.vim](https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim)
2828
and put it in the "autoload" directory.
2929

30+
#### Vim
31+
3032
###### Unix
3133

3234
```sh
3335
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
3436
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
3537
```
3638

37-
###### Neovim
39+
###### Windows (PowerShell)
40+
41+
```powershell
42+
md ~\vimfiles\autoload
43+
$uri = 'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
44+
(New-Object Net.WebClient).DownloadFile($uri, $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath("~\vimfiles\autoload\plug.vim"))
45+
```
46+
47+
#### Neovim
48+
49+
###### Unix
3850

3951
```sh
4052
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
@@ -44,9 +56,9 @@ curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
4456
###### Windows (PowerShell)
4557

4658
```powershell
47-
md ~\vimfiles\autoload
59+
md ~\AppData\Local\nvim\autoload
4860
$uri = 'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
49-
(New-Object Net.WebClient).DownloadFile($uri, $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath("~\vimfiles\autoload\plug.vim"))
61+
(New-Object Net.WebClient).DownloadFile($uri, $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath("~\AppData\Local\nvim\autoload\plug.vim"))
5062
```
5163

5264
### Getting Help

0 commit comments

Comments
 (0)