X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/71bbb678b9f3ad1b18eab9c967b39f22a0d19535..b332cfa655dedfeb74974abdac1fb7b55d7e62ea:/docs/editor_integration.md?ds=sidebyside diff --git a/docs/editor_integration.md b/docs/editor_integration.md index aa3a1ee..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 @@ -286,7 +299,8 @@ Sublime Text, Visual Studio Code and many more), you can use the ## Atom/Nuclide -Use [python-black](https://atom.io/packages/python-black). +Use [python-black](https://atom.io/packages/python-black) or +[formatters-python](https://atom.io/packages/formatters-python). ## Gradle (the build tool)