Black: Difference between revisions
From charlesreid1
(Created page with "To install black: Make a vim plugin directory <pre> mkdir -p ~/.vim/plugin </pre> Now copy the black vim plugin into the plugin folder: <pre> cd ~/.vim/plugin && wget http...") |
No edit summary |
||
| Line 1: | Line 1: | ||
Black is the uncompromising code formatter: https://black.readthedocs.io/en/stable/ | |||
==Why Use Black== | |||
Lessons learned about gofmt. Also see blog posts at https://charlesreid1.github.io | |||
==Installation Instructions== | |||
To install black: | To install black: | ||
| Line 20: | Line 28: | ||
Now you should be all set. | Now you should be all set. | ||
==Scripting== | |||
To script the installation of Black and the setup of a vim plugin for Black, | |||
==Side Note== | |||
[[Category:Vim]] | [[Category:Vim]] | ||
[[Category:Python]] | [[Category:Python]] | ||
Revision as of 16:44, 7 August 2019
Black is the uncompromising code formatter: https://black.readthedocs.io/en/stable/
Why Use Black
Lessons learned about gofmt. Also see blog posts at https://charlesreid1.github.io
Installation Instructions
To install black:
Make a vim plugin directory
mkdir -p ~/.vim/plugin
Now copy the black vim plugin into the plugin folder:
cd ~/.vim/plugin && wget https://github.com/psf/black/blob/master/plugin/black.vim
Next start vim up and let black go through the installation/setup process:
vim
Now you should be all set.
Scripting
To script the installation of Black and the setup of a vim plugin for Black,