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 = "\" let s:licenseTag = s:licenseTag . "Call Center On Demand Product Series\ " let s:licenseTag = s:licenseTag . "Copyright (C) 2015 ChannelSoft(Beijing.) Technology Ltd., Co.\ " let s:licenseTag = s:licenseTag . "All right reserved\ " let s:licenseTag = s:licenseTag . "\ " let s:licenseTag = s:licenseTag . "$$\ " let s:licenseTag = s:licenseTag . "TODO:\ " let s:licenseTag = s:licenseTag . "\ " 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 dO#endif PO#if 0 map :Dox map :DoxAuthor map :DoxLic map b :DoxBlock map l :DoxLic map c odocClass map m odocMember map :DoxBlock
效果图如下: