1 、csupport插件
3 Steps to Install the C.Vim Plugin
Step 1: Download C Vim Plugin
Download the plugin from vim.org website.
$ cd /usr/src $ wget http://www.vim.org/scripts/download_script.php?src_id=9679
Step 2: Install the C Vim Plugin
$ mkdir ~/.vim $ cd ~/.vim $ unzip /usr/src/cvim.zip
Step 3: Enable the plugin in the ~/.vimrc
Add the following line to the ~/.vimrc to enable the plugin for Vim editor.
$ vim ~/.vimrc filetype plugin on
To change the default value of the AUTHOR and COMPANY, modify the default value in ~/.vim/c-support/templates/Templates
$ vim ~/.vim/c-support/templates/Templates |AUTHOR| = geekstuff |AUTHORREF| = gk |EMAIL| = subscribe@geekstuff |COMPANY| = thegeekstuff.com
Feature 5: Add a Frame comment using \cfr
To add a frame comment, type \cfr in normal mode, which will give the following formatted comment.
2、DoxygenToolkit.vim
install details |
Copy to your '~/.vim/plugin' directory |
在 ~/.vimrc增加配置
- When you define:
g:DoxygenToolkit_briefTag_pre = "@brief "
g:DoxygenToolkit_briefTag_post = "<++>"
g:DoxygenToolkit_briefTag_funcName = "yes"
Documentation generated with these parameters is something like:
/// @brief foo <++>
You can configure similarly parameters to get something like:
/// @brief foo <++>
/// @param bar <++>
/// @param baz <++>
分别使用Dox、DoxLic、DoxAuthor生成函数,版权授权和作者注释模板。