1 " Load the doxygen syntax
 
   2 let b:load_doxygen_syntax = 1
 
   6     au BufEnter *.h        let b:fswitchdst  = 'c,cpp,cxx'
 
   7     au BufEnter *.h        let b:fswitchlocs = '.,reg:|include.*|src|'
 
   8     au BufEnter *.c        let b:fswitchdst  = 'h'
 
   9     au BufEnter *.c        let b:fswitchlocs = 'reg:|source|include/**|'
 
  12 " Disable ale as we use ycm
 
  15 nnoremap <buffer> gd :YcmCompleter GoTo<CR>
 
  16 nnoremap <buffer> <C-W>d :vs<CR>:YcmCompleter GoTo<CR>
 
  17 nnoremap <buffer> gD :YcmCompleter GoToReferences<CR>
 
  19 nnoremap <buffer> <leader>fi :YcmCompleter FixIt<CR>
 
  22 call operator#user#define_ex_command('ycmcompleter-format', 'YcmCompleter Format')
 
  23 map <buffer> = <Plug>(operator-ycmcompleter-format)
 
  24 vnoremap <buffer> = :YcmCompleter Format<CR>
 
  25 " restore = mapping to g=
 
  30 let g:ycm_auto_hover = ''
 
  31 let b:ycm_hover = { 'command': 'GetDoc', 'syntax': &filetype }
 
  32 nmap <buffer> gh <plug>(YCMHover)
 
  33 nmap <buffer> gH :YcmCompleter GetDoc<CR>
 
  35 let b:tcomment_options = {'whitespace': 'no'}
 
  37 setlocal cinoptions+=l1  " align with case label