From e23d4bb6613f4eb3fa511458feab0a5fb223c0fb Mon Sep 17 00:00:00 2001 From: jdhao Date: Fri, 11 Apr 2025 21:06:53 +0200 Subject: [PATCH] use black to format python file --- after/ftplugin/python.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/after/ftplugin/python.vim b/after/ftplugin/python.vim index 7e8b33b..49563df 100644 --- a/after/ftplugin/python.vim +++ b/after/ftplugin/python.vim @@ -12,3 +12,5 @@ set tabstop=4 " number of visual spaces per TAB set softtabstop=4 " number of spaces in tab when editing set shiftwidth=4 " number of spaces to use for autoindent set expandtab " expand tab to spaces so that tabs are spaces + +nnoremap f silent !black %