1. :DoxLic --->添加版权
2. :DoxAuthor---->文件头
3. :Dox----> 函数注释
安装过程:
1. 创建目录 ~/.vim/plugin
2. 下载DoxygenToolkit.vim,
3. 将DoxygenToolkit.vim放到~/.vim/plugin
4. 编辑~/.vimrc,添加如下内容
"doxygen toolkit "let g:DoxygenToolkit_briefTag_pre="@name: xumj " let g:DoxygenToolkit_paramTag_pre="@param: " let g:DoxygenToolkit_returnTag="@returns: " let g:DoxygenToolkit_blockHeader="/*******************************************************" let g:DoxygenToolkit_blockFooter="*******************************************************/" let g:DoxygenToolkit_authorName="xumj,xumj@channelsoft.com" let s:licenseTag = "<enter>" let s:licenseTag = s:licenseTag . "Call Center On Demand Product Series<enter>" let s:licenseTag = s:licenseTag . "Copyright (C) 2015 ChannelSoft(Beijing.) Technology Ltd., Co.<enter>" let s:licenseTag = s:licenseTag . "All right reserved<enter>" let s:licenseTag = s:licenseTag . "<enter>" let s:licenseTag = s:licenseTag . "$$<enter>" let s:licenseTag = s:licenseTag . "TODO:<enter>" let s:licenseTag = s:licenseTag . "<enter>" let s:licenseTag = s:licenseTag . "*******************************************************/" let g:DoxygenToolkit_licenseTag = s:licenseTag let g:DoxygenToolkit_briefTag_funcName="no" let g:doxygen_enhanced_color=1 let g:DoxygenToolkit_commentType="C++" let g:DoxygenToolkit_classTag = "@class " "自定义快捷键 vmap <C-S-P> dO#endif<Esc>PO#if 0<Esc> map <F12> <Esc>:Dox<cr> map <F10> <Esc>:DoxAuthor<cr> map <F11> <Esc>:DoxLic<cr> map <F4>b :DoxBlock<CR> map <F4>l :DoxLic<CR> map <F4>c odocClass<C-B> map <F4>m odocMember<C-B> map <F9> :DoxBlock<CR>
效果图如下: