From: Sergey Matveev Date: Mon, 4 Jul 2022 12:16:36 +0000 (+0300) Subject: clang-format is already pretty friendly to Vim X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=commitdiff_plain;h=a9febded7eeba1e4c0388c358ffce7e663e54b5f clang-format is already pretty friendly to Vim --- 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()