From 337a4199f90ca48a19cf26511e0cec330b13bd4e Mon Sep 17 00:00:00 2001 From: Josh Holland Date: Tue, 24 Apr 2018 17:36:28 +0100 Subject: [PATCH] Add install instructions for Vim plugin (#131) --- README.md | 16 ++++++++++++++-- {vim/plugin => plugin}/black.vim | 0 2 files changed, 14 insertions(+), 2 deletions(-) rename {vim/plugin => plugin}/black.vim (100%) diff --git a/README.md b/README.md index 9906771..05bff36 100644 --- a/README.md +++ b/README.md @@ -368,9 +368,21 @@ Configuration: * `g:black_linelength` (defaults to `88`) * `g:black_virtualenv` (defaults to `~/.vim/black`) -To install, copy the plugin from [vim/plugin/black.vim](https://github.com/ambv/black/tree/master/vim/plugin/black.vim). +To install with [vim-plug](https://github.com/junegunn/vim-plug): + +``` +Plug 'ambv/black', +``` + +or with [Vundle](https://github.com/VundleVim/Vundle.vim): + +``` +Plugin 'ambv/black' +``` + +or you can copy the plugin from [plugin/black.vim](https://github.com/ambv/black/tree/master/plugin/black.vim). Let me know if this requires any changes to work with Vim 8's builtin -`packadd`, or Pathogen, or Vundle, and so on. +`packadd`, or Pathogen, and so on. This plugin **requires Vim 7.0+ built with Python 3.6+ support**. It needs Python 3.6 to be able to run *Black* inside the Vim process which diff --git a/vim/plugin/black.vim b/plugin/black.vim similarity index 100% rename from vim/plugin/black.vim rename to plugin/black.vim -- 2.39.2