augroup fswitch_cpp
au!
- au BufEnter *.h let b:fswitchdst = 'c,cpp,cc'
+ au BufEnter *.h let b:fswitchdst = 'cpp,cc,c'
au BufEnter *.h let b:fswitchlocs = '.,reg:|include.*|src|'
au BufEnter *.hpp let b:fswitchdst = 'cpp,c'
au BufEnter *.hpp let b:fswitchlocs = '.,reg:|include.*|src|'
nnoremap <buffer>g= =
vnoremap <buffer>g= =
+" hover popup
+let g:ycm_auto_hover = ''
+let b:ycm_hover = { 'command': 'GetDoc', 'syntax': &filetype }
+nmap <buffer> gh <plug>(YCMHover)
+nmap <buffer> gH :YcmCompleter GetDoc<CR>
+
setlocal errorformat=
+" TODO I don't remember these errorformat or what they match, maybe CMake? {{{
+setlocal errorformat+=\ %##%n\ %m\ %f:%l:%c
+setlocal errorformat+=\ %##%n\ %m\ %f
+setlocal errorformat+=%n
+"}}}
setlocal errorformat+=%f:%l:%c:\ %trror:\ %m
setlocal errorformat+=%f:%l:%c:\ %tarning:\ %m
setlocal errorformat+=%D%*\\a[%*\\d]:\ Entering\ directory\ [`']%f'