summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2024-06-06 15:07:50 -0400
committerBen Sima <ben@bsima.me>2024-12-21 10:06:41 -0500
commit1b667645b5e86e9401ae87490e5772b413687cf0 (patch)
tree8ce0f75a7169e01bec7a5ebebf9156fbc52fd5fb
parent482b80f6c5e97d8bf5711c8f8c3e91720a7ec7b5 (diff)
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.
-rw-r--r--.vimrc4
1 files changed, 3 insertions, 1 deletions
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 %<cr>