]> git.friedersdorff.com Git - max/saltfiles.git/commitdiff
Configure autotpep8 a little
authorMaximilian Friedersdorff <max@friedersdorff.com>
Tue, 8 Feb 2022 13:02:02 +0000 (13:02 +0000)
committerMaximilian Friedersdorff <max@friedersdorff.com>
Tue, 8 Feb 2022 13:02:02 +0000 (13:02 +0000)
states/vim/files/vimrc

index 558f124c77be16ab37911ae6338ccbe4bdc18c74..cfebe674808d9df3d4e453630d93f74d891ff634 100644 (file)
@@ -164,4 +164,6 @@ if executable('ag')
 endif
 
 " Auto formatters
+let g:formatdef_autopep8 = "'autopep8 -a - --range '.a:firstline.' '.a:lastline"
 let g:formatters_python = ['autopep8']
+noremap <F3> :Autoformat<CR>