From da848b61477f8fc21b93fe4952574d229c9b1b93 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Thu, 15 Sep 2016 13:27:21 +0100 Subject: [PATCH] vim/cpp: add custom errorformat --- vim/ftplugin/cpp.vim | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/vim/ftplugin/cpp.vim b/vim/ftplugin/cpp.vim index af391a1..542503a 100644 --- a/vim/ftplugin/cpp.vim +++ b/vim/ftplugin/cpp.vim @@ -24,6 +24,16 @@ augroup END nnoremap gd :YcmCompleter GoTo nnoremap d :vs:YcmCompleter GoTo +setlocal errorformat= +setlocal errorformat+=%f:%l:%c:\ %trror:\ %m +setlocal errorformat+=%f:%l:%c:\ %tarning:\ %m +setlocal errorformat+=%D%*\\a[%*\\d]:\ Entering\ directory\ [`']%f' +setlocal errorformat+=%X%*\\a[%*\\d]:\ Leaving\ directory\ [`']%f' +setlocal errorformat+=%D%*\\a:\ Entering\ directory\ [`']%f' +setlocal errorformat+=%X%*\\a:\ Leaving\ directory\ [`']%f' +setlocal errorformat+=%*[^[]\[%tRROR\]%m\ \[%f:%l\] +setlocal errorformat+=%*[^[]\[%tARNING\]%m\ \[%f:%l\] + setlocal foldmethod=syntax " set foldlevel according to number of matches of 'namespace' and 'class' not " containing ';' -- 2.48.1