X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/e293473ea9c6a4408d4eb489d9d61fc87dbec639..b332cfa655dedfeb74974abdac1fb7b55d7e62ea:/docs/editor_integration.md?ds=sidebyside diff --git a/docs/editor_integration.md b/docs/editor_integration.md index bc7c2e7..ae24c76 100644 --- a/docs/editor_integration.md +++ b/docs/editor_integration.md @@ -111,6 +111,8 @@ $ black --help ## Vim +### Official plugin + Commands and shortcuts: - `:Black` to format the entire file (ranges not supported); @@ -233,6 +235,17 @@ If you later want to update _Black_, you should do it like this: $ pip install -U black --no-binary regex,typed-ast ``` +### With ALE + +1. Install [`ale`](https://github.com/dense-analysis/ale) +2. Install `black` +3. Add this to your vimrc: + + ```vim + let g:ale_fixers = {} + let g:ale_fixers.python = ['black'] + ``` + ## Gedit gedit is the default text editor of the GNOME, Unix like Operating Systems. Open gedit