【原创】VIM自动生成各种注释插件:DoxygenToolkit.vim

blogdaren 2014-11-05 1评论 6046人次

插件介绍

VIM官方插件:DoxygenToolkit,它会根据配置自动生成各种注释,主要包括:作者注释、文件注释、时间注释、版本注释、License注释、类以及类方法注释,金牛座的配置如下:
""DoxygenToolkit
let g:DoxygenToolkit_commentType = "php"
let g:DoxygenToolkit_briefTag_pre = "@brief\t"
let g:DoxygenToolkit_briefTag_funcName = "yes"
let g:DoxygenToolkit_briefTag_post = ""
let g:DoxygenToolkit_templateParamTag_pre = "@tparam\t"
let g:DoxygenToolkit_paramTag_pre = "@param\tstring\t"
let g:DoxygenToolkit_returnTag = "@return\t"
let g:DoxygenToolkit_throwTag_pre = "@throw\t"
let g:DoxygenToolkit_fileTag = "@script\t"
let g:DoxygenToolkit_dateTag = "@modify\t"
let g:DoxygenToolkit_authorTag = "@author\t"
let g:DoxygenToolkit_versionTag = "@version\t"
let g:DoxygenToolkit_versionString = "1.0.0"
let g:DoxygenToolkit_blockTag = "@name\t"
let g:DoxygenToolkit_classTag = "@class\t"
let g:DoxygenToolkit_authorName = "blogdaren<blogdaren@163.com>"
let g:doxygen_enhanced_color = 1
nmap ,hh :DoxAuthor<CR><ESC>k8==j$a
nmap ,ff :Dox<CR><ESC>k8==j$a<TAB>
nmap ,da :DoxAuthor<CR><ESC>k8==
nmap ,db :DoxBlock<CR><ESC>k8==

效果图预览

55.png

官方插件

1. http://www.vim.org/scripts/script.php?script_id=987
2. https://github.com/vim-scripts/DoxygenToolkit.vim

版权声明:除非注明,本文由( blogdaren )原创,转载请保留文章出处。

本文链接:【原创】VIM自动生成各种注释插件:DoxygenToolkit.vim

用户评论:

ask
2017-01-12 23:09
请问这个vim的配色方案是什么,谢谢

发表评论:

您的昵称:
电子邮件:
个人主页:

Free Web Hosting