File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,10 @@ redirect_from:
15
15
This method of installing Black uses the built-in plugin management in Vim 8+.
16
16
17
17
``` sh
18
- mkdir -p ~ /.vim/pack/plugins/start/black/{plugin,autoload}
19
- curl https://github.com/psf/black/22.6.0/autoload/black.vim -o ~ /.vim/pack/plugins/start/black/plugin/black.vim
20
- curl https://github.com/psf/black/22.6.0/autoload/black.vim -o ~ /.vim/pack/plugins/start/black/autoload/black.vim
18
+ mkdir -p ~ /.vim/pack/python/start/black/plugin
19
+ mkdir -p ~ /.vim/pack/python/start/black/autoload
20
+ curl https://github.com/psf/black/stable/plugin/black.vim -o ~ /.vim/pack/python/start/black/plugin/black.vim
21
+ curl https://github.com/psf/black/stable/autoload/black.vim -o ~ /.vim/pack/python/start/black/autoload/black.vim
21
22
```
22
23
23
24
Open Vim and format your code with:
@@ -39,8 +40,8 @@ rm -r ~/.vim/black
39
40
40
41
Pull in the new versions of the plugins
41
42
``` sh
42
- curl https://github.com/psf/black/22.7.0/autoload /black.vim -o ~ /.vim/pack/plugins /start/black/plugin/black.vim
43
- curl https://github.com/psf/black/22.7.0 /autoload/black.vim -o ~ /.vim/pack/plugins /start/black/autoload/black.vim
43
+ curl https://github.com/psf/black/stable/plugin /black.vim -o ~ /.vim/pack/python /start/black/plugin/black.vim
44
+ curl https://github.com/psf/black/stable /autoload/black.vim -o ~ /.vim/pack/python /start/black/autoload/black.vim
44
45
```
45
46
46
47
Open Vim and run ` :Black ` again.
You can’t perform that action at this time.
0 commit comments