diff options
author | Ben Sima <ben@bsima.me> | 2024-06-06 15:07:50 -0400 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2024-12-21 10:06:41 -0500 |
commit | 1b667645b5e86e9401ae87490e5772b413687cf0 (patch) | |
tree | 8ce0f75a7169e01bec7a5ebebf9156fbc52fd5fb | |
parent | 482b80f6c5e97d8bf5711c8f8c3e91720a7ec7b5 (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-- | .vimrc | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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> |