From 4a131f0dae6ad5de04312a08c12e6d65e17e52d0 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Mon, 18 Jan 2021 20:56:38 +0100 Subject: Added as default makeprg for C `make ` and removed clang-format, because it can be used manually and does not have to be such a fake equalcommand --- ftplugin/c.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ftplugin') diff --git a/ftplugin/c.vim b/ftplugin/c.vim index f77667f..6bd8e83 100644 --- a/ftplugin/c.vim +++ b/ftplugin/c.vim @@ -2,9 +2,11 @@ setlocal equalprg=clang-format setlocal breakat-=- setlocal keywordprg=man\ 3 +setlocal makeprg=make\ %:r + setlocal cindent cinoptions+=(0 | " indent at parentheses -map = :pyfile /usr/share/clang/clang-format.py +" map = :pyfile /usr/share/clang/clang-format.py let c_space_errors=1 -- cgit v1.2.3