From ae2e52ce0edd2435f02b05ab3367bc9cb5055192 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 1 Oct 2018 14:41:39 +0200 Subject: vim: tweak C completion --- vim/ftplugin/c.vim | 6 +++++- vim/ftplugin/cpp.vim | 6 +++++- vimrc | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/vim/ftplugin/c.vim b/vim/ftplugin/c.vim index 1f57627..88084d5 100644 --- a/vim/ftplugin/c.vim +++ b/vim/ftplugin/c.vim @@ -1,2 +1,6 @@ -let b:ale_linters = ['cppcheck', 'gcc', 'cquery'] +let b:ale_linters = ['cppcheck', 'cquery'] let b:ale_fixers = ['remove_trailing_lines', 'trim_whitespace'] +"let g:ale_c_parse_compile_commands = 1 + +nmap :ALENext +nmap :ALEPrevious diff --git a/vim/ftplugin/cpp.vim b/vim/ftplugin/cpp.vim index 8b20787..7d278bf 100644 --- a/vim/ftplugin/cpp.vim +++ b/vim/ftplugin/cpp.vim @@ -1,3 +1,7 @@ " This is for C but vim defines *.h as cpp type so here we have it -let b:ale_linters = ['cppcheck', 'gcc', 'cquery'] +let b:ale_linters = ['cppcheck', 'cquery'] let b:ale_fixers = ['remove_trailing_lines', 'trim_whitespace'] +"let g:ale_c_parse_compile_commands = 1 + +nmap :ALENext +nmap :ALEPrevious diff --git a/vimrc b/vimrc index 3deb955..bb9c390 100644 --- a/vimrc +++ b/vimrc @@ -51,7 +51,7 @@ set modeline set encoding=utf-8 set foldmethod=syntax -highlight Folded ctermbg=Black ctermfg=LightBlue +highlight Folded ctermbg=Black ctermfg=Yellow set foldtext=FoldText() function FoldText() return getline(v:foldstart) . ' ' -- cgit v1.2.3