diff --git a/syntax_checkers/cpp.vim b/syntax_checkers/cpp.vim index aa7f8587..1dc58f80 100644 --- a/syntax_checkers/cpp.vim +++ b/syntax_checkers/cpp.vim @@ -26,7 +26,7 @@ endif function! SyntaxCheckers_cpp_GetLocList() let makeprg = 'g++ -fsyntax-only '.shellescape(expand('%')) - let errorformat = '%-G%f:%s:,%f:%l: %m' + let errorformat = '%-G%f:%s:,%f:%l:%c: %m,%f:%l: %m' if expand('%') =~? '\%(.h\|.hpp\|.hh\)$' if exists('g:syntastic_cpp_check_header')