正在加载
请稍等

菜单

红楼飞雪 梦

15526773247

文章

Home linux开发学习 DoxygenToolkit 一个特别好使的vim注释工具
Home linux开发学习 DoxygenToolkit 一个特别好使的vim注释工具

DoxygenToolkit 一个特别好使的vim注释工具

linux开发学习 by

DoxygenToolkit.vim  解压至~/.vim/plugin目录下,再将如下代码写入~/.vimrc中

"doxygen toolkit 
let g:DoxygenToolkit_briefTag_pre="LovePrincessStudio  "
let g:DoxygenToolkit_paramTag_pre="@param  "
let g:DoxygenToolkit_returnTag="@returns   "
let g:DoxygenToolkit_blockHeader="-----------------------LovePrincessStudio-------------------------------"
let g:DoxygenToolkit_blockFooter="-----------------------LovePrincessStudio-------------------------------"
let g:DoxygenToolkit_authorName="Pengfei Gao\<enter>* @emailnet.aifei8@gmail.com\<enter>* @weiChat Moira_-\<enter>* @phone number:15526773247\<enter>* @QQ:2466557844\<enter>* @blog:http://blog.aifei8.net\<enter>* @Copyright(C) 2013-2016 aifei8.net All right reserved "
let g:DoxygenToolkit_licenseTag="GPL 2.0"
 
 
 
let s:licenseTag = "Copyright(C) 2013-2016 Love Princess Studio\<enter>"
let s:licenseTag = s:licenseTag . "All right reserved\<enter>"
let g:DoxygenToolkit_licenseTag = s:licenseTag
let g:DoxygenToolkit_briefTag_funcName="yes"
let g:doxygen_enhanced_color=1
 
 
vmap <C-S-P>    dO#endif<Esc>PO#if 0<Esc>
map <F4> <Esc>:Dox<cr>
map <F5> <Esc>:DoxAuthor<cr>
map <F6> <Esc>:DoxLic<cr>

用vim打开一个文件,将光标移至函数上一行,按F4为函数添加注释,按F5添加作者信息,按F6添加版权信息

效果如下图所示:

DoxygenToolkit

 

05 2015-11

 

我要 分享

 

 

本文 作者

 

相关 文章