From: John Meow Date: Sat, 6 Mar 2021 04:22:19 +0000 (+0300) Subject: Add ALE (#1753) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/1f7e73506c8b8c37d72becad5c9d8f1ab61644e1?ds=sidebyside Add ALE (#1753) --- 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