aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2018-10-01 14:41:39 +0200
committerKarel Kočí <karel.koci@nic.cz>2018-10-01 14:41:39 +0200
commitae2e52ce0edd2435f02b05ab3367bc9cb5055192 (patch)
tree5dd7eeb4b11d96223390c224e5f36b5de460d8ac /vim
parent6d6c04a71eff7bb7808dfd71d6d8d4b8b547dccf (diff)
downloadmyconfigs-ae2e52ce0edd2435f02b05ab3367bc9cb5055192.tar.gz
myconfigs-ae2e52ce0edd2435f02b05ab3367bc9cb5055192.tar.bz2
myconfigs-ae2e52ce0edd2435f02b05ab3367bc9cb5055192.zip
vim: tweak C completion
Diffstat (limited to 'vim')
-rw-r--r--vim/ftplugin/c.vim6
-rw-r--r--vim/ftplugin/cpp.vim6
2 files changed, 10 insertions, 2 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 <F8> :ALENext<cr>
+nmap <F7> :ALEPrevious<cr>
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 <F8> :ALENext<cr>
+nmap <F7> :ALEPrevious<cr>