From: Josh Holland Date: Tue, 24 Apr 2018 16:36:28 +0000 (+0100) Subject: Add install instructions for Vim plugin (#131) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/337a4199f90ca48a19cf26511e0cec330b13bd4e Add install instructions for Vim plugin (#131) --- 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