Fixing the documentation of how to install the vim plugin (#1318)

* fix: Fixing the documentation of how to install the vim plugin

Solves the installation problem that currently exist because
the current master branch is not stable. See psf/black#1304 for
more information.

* fix: fixing incorrect path
This commit is contained in:
shaoran 2020-04-24 04:32:40 +02:00 committed by GitHub
parent 8654e8d7ae
commit 8126b4f6a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -738,7 +738,7 @@ Configuration:
To install with [vim-plug](https://github.com/junegunn/vim-plug): To install with [vim-plug](https://github.com/junegunn/vim-plug):
``` ```
Plug 'psf/black' Plug 'psf/black', { 'branch': 'stable' }
``` ```
or with [Vundle](https://github.com/VundleVim/Vundle.vim): or with [Vundle](https://github.com/VundleVim/Vundle.vim):
@ -747,8 +747,15 @@ or with [Vundle](https://github.com/VundleVim/Vundle.vim):
Plugin 'psf/black' Plugin 'psf/black'
``` ```
and execute the following in a terminal:
```console
$ cd ~/.vim/bundle/black
$ git checkout origin/stable -b stable
```
or you can copy the plugin from or you can copy the plugin from
[plugin/black.vim](https://github.com/psf/black/tree/master/plugin/black.vim). [plugin/black.vim](https://github.com/psf/black/blob/stable/plugin/black.vim).
``` ```
mkdir -p ~/.vim/pack/python/start/black/plugin mkdir -p ~/.vim/pack/python/start/black/plugin