diff options
author | Max Christian Pohle | 2021-01-18 20:56:38 +0100 |
---|---|---|
committer | Max Christian Pohle | 2021-01-18 20:56:38 +0100 |
commit | 4a131f0dae6ad5de04312a08c12e6d65e17e52d0 (patch) | |
tree | 92ad8e5e14c6abcbf24e35a1728e39d17a5f83f2 /ftplugin | |
parent | 3b9cb8322fd7e8370553cd2dd4d1734a45f1f377 (diff) | |
download | vim-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
Diffstat (limited to 'ftplugin')
-rw-r--r-- | ftplugin/c.vim | 4 |
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 | |||
2 | setlocal breakat-=- | 2 | setlocal breakat-=- |
3 | setlocal keywordprg=man\ 3 | 3 | setlocal keywordprg=man\ 3 |
4 | 4 | ||
5 | setlocal makeprg=make\ %:r | ||
6 | |||
5 | setlocal cindent cinoptions+=(0 | " indent at parentheses | 7 | setlocal cindent cinoptions+=(0 | " indent at parentheses |
6 | 8 | ||
7 | map <buffer> = :pyfile /usr/share/clang/clang-format.py<CR> | 9 | " map <buffer> = :pyfile /usr/share/clang/clang-format.py<CR> |
8 | 10 | ||
9 | 11 | ||
10 | let c_space_errors=1 | 12 | let c_space_errors=1 |