*csupport.txt* C/C++ Support September 11 2011
C/C++ Support *c-support* *csupport*
Plugin version 5.15
for Vim version 7.0 and above
Fritz Mehner <mehner@fh-swf.de>
C/C++-IDE for Vim/gVim. It is written to considerably speed up writing code in
a consistent style. This is done by inserting complete statements,idioms,
code snippets, templates, and comments. Syntax checking, compiling, running
a program, running a code checker or a reformatter can be done with a
keystroke.
1. Usage |csupport-usage-gvim|
1.1 Menu 'Comments' |csupport-comm|
1.1.1 Append aligned comments |csupport-comm-aligned|
1.1.2 Adjust end-of-line comments |csupport-comm-realign|
1.1.3 Code to comment |csupport-code-to-comm|
1.1.4 Comment to code |csupport-comm-to-code|
1.1.5 Frame comments, file header, ... |csupport-comm-frame|
1.1.6 File section comments .. |csupport-comm-sections|
1.1.7 Keyword comment, special comment |csupport-comm-keyword|
1.1.8 Tags (plugin) |csupport-comm-tags|
1.1.9 Date and date+time |csupport-comm-date|
1.1.10 C to C++ comments and vice versa |csupport-comm-c-cpp|
1.2 Menu 'Statements' |csupport-stat|
1.2.1 Normal mode, insert mode. |csupport-stat-normal-mode|
1.2.2 Visual mode. |csupport-stat-visual-mode|
1.3 Menu 'Preprocessor' |csupport-prep|
1.3.1 Normal mode, insert mode. |csupport-prep-normal-mode|
1.3.2 Visual mode. |csupport-prep-visual-mode|
1.3.3 Block out code with #if 0 .. #endif |csupport-prep-if0|
1.3.4 Ex-commands |csupport-prep-ex|
1.4 Menu 'Idioms' |csupport-idioms|
1.4.1 Item 'function' |csupport-idioms-function|
1.4.2 for-loop control |csupport-idioms-for-loop|
1.4.3 Item 'open input file' |csupport-idioms-input|
1.4.4 Item 'open output file' |csupport-idioms-output|
1.5 Menu 'Snippets' |csupport-snippets|
1.5.1 Code snippets |csupport-snippets|
1.5.2 Picking up prototypes |csupport-proto|
1.5.3 Code templates |csupport-templates-menu|
1.6 Menu 'C++' |csupport-c++|
1.6.1 Normal mode, insert mode. |csupport-c++-normal-mode|
1.6.2 Visual mode. |csupport-c++-visual-mode|
1.6.3 Method implementation |csupport-c++-method-impl|
1.6.4 Ex commands |csupport-c++-ex|
1.7 Menu 'Run' |csupport-run|
1.7.1 Minimal make functionality |csupport-run-buffer|
1.7.2 Command line arguments |csupport-run-cmdline-args|
1.7.3 Run make |csupport-run-make|
1.7.4 Executable to run |csupport-run-make-run|
1.7.5 Run make clean |csupport-run-make-clean|
1.7.6 Command line arguments for make |csupport-run-make-args|
1.7.7 Splint |csupport-run-splint|
1.7.8 CodeCheck |csupport-run-codecheck|
1.7.9 Indent |csupport-run-indent|
1.7.10 Hardcopy |csupport-run-hardcopy|
1.7.11 Rebuild templates |csupport-run-templates|
1.7.12 Xterm size |csupport-run-xterm|
1.7.13 Output redirection |csupport-run-output|
1.8 Help |csupport-help|
2. Usage without GUI |csupport-usage-vim|
3. Hotkeys |csupport-hotkeys|
4. Customization and configuration |csupport-custom|
4.1 Global variables |csupport-custom-glob-vars|
4.2 The root menu |csupport-custom-root|
4.3 System-wide installation |csupport-system-wide|
5. Template files and tags |csupport-templates|
5.1 Template files |csupport-templates-files|
5.2 Macros |csupport-templates-macros|
5.2.1 User defined formats for date and time |csupport-templates-date|
5.3 Templates |csupport-templates-names|
5.3.1 Template names |csupport-templates-names|
5.3.2 Template definition |csupport-templates-definition|
5.3.3 Template expansion |csupport-templates-expansion|
5.3.4 The macros <+text+> etc. |csupport-templates-jump|
5.3.5 Command Ctrl-j |csupport-Ctrl-j|
5.4 Switching between template sets |csupport-templates-sets|
5.5 Binding a style to a file extension |csupport-templates-bind|
6. C/C++ Dictionaries |csupport-dictionary|
7. Extend ctags |csupport-ctags|
7.1 Make and qmake |csupport-ctags-make|
7.2 Templates |csupport-ctags-templates|
8. Folding |csupport-folding|
9 Additional Mappings |csupport-ad-mappings|
10. Windows particularities |csupport-windows|
11. Additional tips |csupport-tips|
12. Troubleshooting |csupport-troubleshooting|
13. Release Notes /Change Log |csupport-release-notes|
How to add this help file to Vim's help |add-local-help|
==============================================================================
1. USAGE WITH GUI (gVim) *csupport-usage-gvim*
==============================================================================
If the root menu 'C/C++' is not visible call it with the item "Load C Support"
from the standard Tools-menu.
The item "Load C Support" can also be used to unload the C/C++-root menu.
Nearly all menu entries insert code snippets or comments. All of these are
contained within template files and can be changed by the user to meet their
requirements (see|csupport-templates|).
------------------------------------------------------------------------------
1.1 MENU 'Comments' *csupport-comm*
------------------------------------------------------------------------------
1.1.1 APPEND ALIGNED COMMENTS TO CONSECUTIVE LINES *csupport-comm-aligned*
In NORMAL MODE, the menu item 'end-of-line comment' will append a comment to
the current line.
In VISUAL MODE, this item will append aligned comments to all marked lines.
Marking the first 4 lines
print_double_array ( double array[],
int n,
int columns,
char* arrayname
)
and choosing 'end-of-line com. /**/' will yield.
print_double_array ( double array[], /* */
int n, /* */
int columns, /* */
char* arrayname /* */
) /* */
If one or more lines go beyond the starting column (s.below), the comments
will start at the second column after the longest line. The cursor will then
be positioned inside the first comment.
The d
评论4
最新资源