From 1b667645b5e86e9401ae87490e5772b413687cf0 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Thu, 6 Jun 2024 15:07:50 -0400 Subject: Use `lint -f` as the formatter in vim This configures `=` to use `lint -f` as the formatter when some lines are selected. As a shortcut, `,f` can be used to format the whole buffer. --- .vimrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index ded7532..51ab588 100644 --- a/.vimrc +++ b/.vimrc @@ -9,5 +9,7 @@ au BufWritePost *.c silent !$CODEROOT/Biz/Ide/MakeTags.py % au BufWritePost *.scm silent !$CODEROOT/Biz/Ide/MakeTags.py % augroup END -set equalprg=ormolu setl tags=$CODEROOT/tags,$CODEROOT/_/src/tags + +set equalprg="lint -f" +nmap ,f :!lint -f % -- cgit v1.2.3