aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Christian Pohle2021-01-18 20:56:38 +0100
committerMax Christian Pohle2021-01-18 20:56:38 +0100
commit4a131f0dae6ad5de04312a08c12e6d65e17e52d0 (patch)
tree92ad8e5e14c6abcbf24e35a1728e39d17a5f83f2
parent3b9cb8322fd7e8370553cd2dd4d1734a45f1f377 (diff)
downloadvim-4a131f0dae6ad5de04312a08c12e6d65e17e52d0.tar.bz2
vim-4a131f0dae6ad5de04312a08c12e6d65e17e52d0.zip
Added as default makeprg for C `make <thisfile>`
and removed clang-format, because it can be used manually and does not have to be such a fake equalcommand
-rw-r--r--ftplugin/c.vim4
1 files changed, 3 insertions, 1 deletions
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
2setlocal breakat-=- 2setlocal breakat-=-
3setlocal keywordprg=man\ 3 3setlocal keywordprg=man\ 3
4 4
5setlocal makeprg=make\ %:r
6
5setlocal cindent cinoptions+=(0 | " indent at parentheses 7setlocal cindent cinoptions+=(0 | " indent at parentheses
6 8
7map <buffer> = :pyfile /usr/share/clang/clang-format.py<CR> 9" map <buffer> = :pyfile /usr/share/clang/clang-format.py<CR>
8 10
9 11
10let c_space_errors=1 12let c_space_errors=1
..