From 8126b4f6a9342290de4655e6a8a78cd288ce7daa Mon Sep 17 00:00:00 2001 From: shaoran Date: Fri, 24 Apr 2020 04:32:40 +0200 Subject: [PATCH] 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 --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1d62a2c..4d7f5fd 100644 --- a/README.md +++ b/README.md @@ -738,7 +738,7 @@ Configuration: 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): @@ -747,8 +747,15 @@ or with [Vundle](https://github.com/VundleVim/Vundle.vim): 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 -[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 -- 2.39.5