All Projects → vim-scripts → Doxygentoolkit.vim

vim-scripts / Doxygentoolkit.vim

Simplify Doxygen documentation in C, C++, Python.

Labels

Projects that are alternatives of or similar to Doxygentoolkit.vim

Provim
Repository to hold dotfiles and scripts specific to ProVim
Stars: ✭ 122 (-11.59%)
Mutual labels:  viml
Vim Twig
Twig syntax highlighting, snipMate, etc.
Stars: ✭ 126 (-8.7%)
Mutual labels:  viml
Vim Textobj Line
Vim plugin: Text objects for the current line
Stars: ✭ 134 (-2.9%)
Mutual labels:  viml
Xml.vim
helps editing xml (and [x]html, sgml, xslt) files
Stars: ✭ 123 (-10.87%)
Mutual labels:  viml
Perlomni.vim
perl omnicompletion for vim (including base class function compleltions .. etc)
Stars: ✭ 125 (-9.42%)
Mutual labels:  viml
Vim Noscrollbar
A scrollbar-like widget for the vim statusline
Stars: ✭ 129 (-6.52%)
Mutual labels:  viml
Tmux Config
Configuration and tools for tmux. Can be used as a Vim plugin.
Stars: ✭ 121 (-12.32%)
Mutual labels:  viml
Vimkata
Deliberate Practice lessons for learning the Vim Editor
Stars: ✭ 135 (-2.17%)
Mutual labels:  viml
Vim Todo Lists
Vim plugin for TODO lists
Stars: ✭ 126 (-8.7%)
Mutual labels:  viml
Align
Help folks to align text, eqns, declarations, tables, etc
Stars: ✭ 132 (-4.35%)
Mutual labels:  viml
Vim R Plugin
Plugin to work with R
Stars: ✭ 124 (-10.14%)
Mutual labels:  viml
Spacemacs Theme.vim
Spacemacs-flavoured colorscheme for Vim and iTerm
Stars: ✭ 125 (-9.42%)
Mutual labels:  viml
Mustache.vim
Vim mode for mustache and handlebars (Deprecated)
Stars: ✭ 129 (-6.52%)
Mutual labels:  viml
Vim Arduino
Compile and Deploy Arduino sketches in Vim
Stars: ✭ 122 (-11.59%)
Mutual labels:  viml
Eddie Vim2
Yet another vimrc
Stars: ✭ 135 (-2.17%)
Mutual labels:  viml
Vim Qfreplace
Perform the replacement in quickfix.
Stars: ✭ 121 (-12.32%)
Mutual labels:  viml
Quickfixsigns vim
Mark quickfix & location list items with signs
Stars: ✭ 126 (-8.7%)
Mutual labels:  viml
Vim Addon Local Vimrc
kiss local vimrc with hash protection
Stars: ✭ 136 (-1.45%)
Mutual labels:  viml
Haskellmode Vim
An unpacked copy of the haskellmode vimball. Ping me if it needs updating.
Stars: ✭ 135 (-2.17%)
Mutual labels:  viml
Unite Outline
outline source for unite.vim
Stars: ✭ 132 (-4.35%)
Mutual labels:  viml

This is a mirror of http://www.vim.org/scripts/script.php?script_id=987

Currently five purposes have been defined :

Generates a doxygen license comment. The tag text is configurable.

Generates a doxygen author skeleton. The tag text is configurable.

Generates a doxygen comment skeleton for a C, C++ or Python function or class, including @brief, @param (for each named argument), and @return. The tag text as well as a comment block header and footer are configurable. (Consequently, you can have \brief, etc. if you wish, with little effort.)

Ignore code fragment placed in a block defined by #ifdef ... #endif (C/C++). The block name must be given to the function. All of the corresponding blocks in all the file will be treated and placed in a new block DOX_SKIP_BLOCK (or any other name that you have configured). Then you have to update PREDEFINED value in your doxygen configuration file with correct block name. You also have to set ENABLE_PREPROCESSING to YES.

Generate a doxygen group (begining and ending). The tag text is configurable.

Use:

  • Type of comments (C/C++: /// or /** ... /, Python: ## and # ) : In vim, default C++ comments are : /* ... */. But if you prefer to use /// Doxygen comments just add 'let g:DoxygenToolkit_commentType = "C++"' (without quotes) in your .vimrc file

  • License : In vim, place the cursor on the line that will follow doxygen license comment. Then, execute the command :DoxLic. This will generate license comment and leave the cursor on the line just after.

  • Author : In vim, place the cursor on the line that will follow doxygen author comment. Then, execute the command :DoxAuthor. This will generate the skeleton and leave the cursor just after @author tag if no variable define it, or just after the skeleton.

  • Function / class comment : In vim, place the cursor on the line of the function header (or returned value of the function) or the class. Then execute the command :Dox. This will generate the skeleton and leave the cursor after the @brief tag.

  • Ignore code fragment (C/C++ only) : In vim, if you want to ignore all code fragment placed in a block such as : #ifdef DEBUG ... #endif You only have to execute the command :DoxUndoc(DEBUG) !

  • Group : In vim, execute the command :DoxBlock to insert a doxygen block on the following line.

Limitations:

  • Assumes that the function name (and the following opening parenthesis) is at least on the third line after current cursor position.
  • Not able to update a comment block after it's been written.
  • Blocks delimiters (header and footer) are only included for function comment.
  • Assumes that cindent is used.
  • Comments in function parameters (such as void foo(int bar /* ... */, baz)) are not yet supported.

Example: Given: int foo(char mychar, int myint, double* myarray, int mask = DEFAULT) { //... }

Issuing the :Dox command with the cursor on the function declaration would generate

/**

To customize the output of the script, see the g:DoxygenToolkit_* variables in the script's source. These variables can be set in your .vimrc.

For example, my .vimrc contains: let g:DoxygenToolkit_briefTag_pre="@Synopsis " let g:DoxygenToolkit_paramTag_pre="@Param " let g:DoxygenToolkit_returnTag="@Returns " let g:DoxygenToolkit_blockHeader="--------------------------------------------------------------------------" let g:DoxygenToolkit_blockFooter="----------------------------------------------------------------------------" let g:DoxygenToolkit_authorName="Mathias Lorente" let g:DoxygenToolkit_licenseTag="My own license" <-- !!! Does not end with "<enter>"

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].