vim-lint

Lint plugin for vim
git clone https://git.ce9e.org/vim-lint.git

commit
c6ca1b8961ae3a83e0dcb2b92b9f4b4c96530f43
parent
3bf9b7c9730a2e65b40de7f19678f8ce8fb1dfe4
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2021-05-27 05:34
gcc/clang: allow to provide includes via $INCS

example: INCS=`pkg-config --cflags gtk+-3.0` vim

Diffstat

M ftplugin/c_clang.vim 2 +-
M ftplugin/c_gcc.vim 2 +-

2 files changed, 2 insertions, 2 deletions


diff --git a/ftplugin/c_clang.vim b/ftplugin/c_clang.vim

@@ -1,4 +1,4 @@
    1     1 if executable('clang') && !exists('b:lint_prg')
    2    -1     let b:lint_prg = 'clang -c -Wall'
   -1     2     let b:lint_prg = 'clang -c -Wall $INCS'
    3     3     let b:lint_format = '%f:%l:%c: %m'
    4     4 endif

diff --git a/ftplugin/c_gcc.vim b/ftplugin/c_gcc.vim

@@ -1,4 +1,4 @@
    1     1 if executable('gcc') && !exists('b:lint_prg')
    2    -1     let b:lint_prg = 'gcc -c -Wall'
   -1     2     let b:lint_prg = 'gcc -c -Wall $INCS'
    3     3     let b:lint_format = '%f:%l:%c: %m'
    4     4 endif