From c118c7fed2eb1750e2f388fa2603ea6c6ffc9394 Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Sat, 21 Mar 2020 10:06:33 -0400 Subject: [PATCH] Fun with python syntaxes --- vimrc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vimrc b/vimrc index 545c110..a203346 100644 --- a/vimrc +++ b/vimrc @@ -22,8 +22,9 @@ set smartcase set tabstop=4 set textwidth=67 -au BufRead,BufNewFile Pipfile setfiletype toml au BufRead,BufNewFile *.gcfg setfiletype gitconfig +au BufRead,BufNewFile Pipfile setfiletype toml +au BufWritePre *.py execute ':Black' au QuickFixCmdPost *grep* cwindow map ,t :w @@ -36,6 +37,11 @@ let g:python_highlight_all = 1 let g:rustfmt_autosave = 1 let g:shfmt_extra_args = '-i 2' let g:shfmt_fmt_on_save = 1 +let g:syntastic_always_populate_loc_list = 1 +let g:syntastic_auto_loc_list = 1 +let g:syntastic_check_on_open = 1 +let g:syntastic_check_on_wq = 0 +let g:syntastic_python_checkers = ['flake8'] let g:terraform_align = 1 let g:terraform_fmt_on_save = 1 let g:vim_markdown_folding_disabled = 1