]> git.rmz.io Git - dotfiles.git/blob - vim/ftplugin/c.vim
weechat: update configs
[dotfiles.git] / vim / ftplugin / c.vim
1 " Load the doxygen syntax
2 let b:load_doxygen_syntax = 1
3
4 augroup fswitch
5 au BufEnter *.h let b:fswitchdst = 'c'
6 au BufEnter *.h let b:fswitchlocs = 'reg:|include.*|source|'
7 au BufEnter *.c let b:fswitchdst = 'h'
8 au BufEnter *.c let b:fswitchlocs = 'reg:|source|include/**|'
9 augroup END
10
11 nnoremap <buffer> gd :YcmCompleter GoTo<CR>
12 nnoremap <buffer> <C-W>d :vs<CR>:YcmCompleter GoTo<CR>