From: Maximilian Friedersdorff Date: Wed, 28 Aug 2019 11:27:07 +0000 (+0100) Subject: Add Black code formatter to vim X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=e468321a31ae1f5cabe8404f56bccede1c132a7e;p=max%2Fsaltfiles.git Add Black code formatter to vim --- diff --git a/states/vim/files/vimrc b/states/vim/files/vimrc index b8cf54d..5980b64 100644 --- a/states/vim/files/vimrc +++ b/states/vim/files/vimrc @@ -38,6 +38,7 @@ Plugin 'gu-fan/riv.vim' Plugin 'nvie/vim-rst-tables' Plugin 'lepture/vim-jinja' Plugin 'aklt/plantuml-syntax' +Plugin 'psf/black' " All of your Plugins must be added before the following line call vundle#end() " required @@ -126,3 +127,6 @@ set list listchars=trail:•,extends:>,precedes:<,nbsp:␣,eol:↲,tab:→\, " Force python3 for rst tables plugin let g:rst_prefer_python_version = 2 + +" Set linelength for python +let g:black_linelength = 80