/vim-black

Vim plugin for Black integration

Primary LanguageVim scriptMIT LicenseMIT

black.vim

This is an easy to install Vim integration for Black code formatter I use.

Install

Use your favorite plugin manager.

vim-plug:

Plug 'igorpejic/vim-black'

or

VundleVim:

Plugin 'igorpejic/vim-black'

Settings

Run on save

To run black on every save, add this to your ~/.vimrc:

autocmd BufWritePost *.py execute ':Black'

Thanks

This script was originally written by: Łukasz Langa.

The original version of the script can be found in the black repository.