From a9febded7eeba1e4c0388c358ffce7e663e54b5f Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Mon, 4 Jul 2022 15:16:36 +0300 Subject: [PATCH] clang-format is already pretty friendly to Vim --- clang-format/bin/cfmt.sh | 3 --- vim/.vim/ftplugin/c/fmt.vim | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) delete mode 100755 clang-format/bin/cfmt.sh diff --git a/clang-format/bin/cfmt.sh b/clang-format/bin/cfmt.sh deleted file mode 100755 index e0adac5..0000000 --- a/clang-format/bin/cfmt.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -clang-format -style="`cat ~/.clang-format`" $@ diff --git a/vim/.vim/ftplugin/c/fmt.vim b/vim/.vim/ftplugin/c/fmt.vim index 2deba28..3b25483 100644 --- a/vim/.vim/ftplugin/c/fmt.vim +++ b/vim/.vim/ftplugin/c/fmt.vim @@ -1,2 +1,2 @@ -set equalprg=cfmt.sh +set equalprg=clang-format command! -buffer Fmt call fmt#Do() -- 2.44.0