cvim

所属分类:ActiveX/DCOM/ATL
开发工具:C/C++
文件大小:137KB
下载次数:9
上传日期:2009-11-11 16:21:52
上 传 者sun_seven
说明:  c和c++编程插件, 可以安装完后可以用快捷键完成command,idiom等功能的自动插入
(c and c++ programming plugin)

文件列表:
ftplugin (0, 2008-12-03)
ftplugin\c.vim (24746, 2008-11-28)
doc (0, 2008-12-03)
doc\csupport.txt (75491, 2008-12-02)
c-support (0, 2008-12-03)
c-support\templates (0, 2008-12-03)
c-support\templates\c.comments.template (7713, 2008-01-29)
c-support\templates\c.preprocessor.template (1924, 2008-08-03)
c-support\templates\cpp.cpp.template (16970, 2008-12-02)
c-support\templates\c.statements.template (1848, 2007-12-29)
c-support\templates\cpp.statements.template (1842, 2007-12-29)
c-support\templates\c.cpp.template (17112, 2008-12-02)
c-support\templates\Templates (932, 2008-01-29)
c-support\templates\cpp.comments.template (7568, 2008-01-29)
c-support\templates\cpp.preprocessor.template (1883, 2008-08-03)
c-support\templates\cpp.idioms.template (3687, 2008-10-30)
c-support\templates\c.idioms.template (3810, 2008-10-30)
c-support\rc (0, 2008-12-03)
c-support\rc\customization.ctags (152, 2008-09-20)
c-support\rc\customization.vimrc (6335, 2007-09-13)
c-support\rc\customization.indent.pro (199, 2007-02-19)
c-support\rc\customization.gvimrc (1752, 2007-04-20)
c-support\doc (0, 2008-12-03)
c-support\doc\c-hotkeys.tex (12769, 2008-12-03)
c-support\doc\c-hotkeys.pdf (73600, 2008-12-03)
c-support\doc\ChangeLog (16909, 2008-10-03)
c-support\wordlists (0, 2008-12-03)
c-support\wordlists\c-c++-keywords.list (1699, 2007-11-21)
c-support\wordlists\stl_index.list (2409, 2007-02-19)
c-support\wordlists\k+r.list (1057, 2007-02-19)
c-support\codesnippets (0, 2008-12-03)
c-support\codesnippets\calloc_double_matrix.c (1511, 2007-02-19)
c-support\codesnippets\print_double_array.c.noindent (1103, 2007-02-19)
c-support\codesnippets\Makefile (6997, 2008-10-03)
c-support\codesnippets\main.c (498, 2007-02-19)
c-support\codesnippets\print_int_array.c.noindent (1086, 2007-02-19)
c-support\codesnippets\Makefile.multi-target.template (2057, 2007-02-19)
c-support\codesnippets\main.cc (503, 2008-08-19)
c-support\codesnippets\calloc_int_matrix.c (1439, 2007-02-19)
... ...

README for c.vim (Version 5.3) / November 28 2008 * DESCRIPTION * INSTALLATION * RELEASE NOTES * FILES * ADDITIONAL TIPS * CREDITS ======================================================================================= DESCRIPTION ======================================================================================= 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 indent or code checkers can be done with a keystroke. There are many additional hints and options which can improve speed and comfort when writing C/C++. See the help file csupport.txt for more information. ======================================================================================= INSTALLATION ======================================================================================= The subdirectories in the zip archive cvim.zip mirror the directory structure which is needed below the local installation directory $HOME/.vim/ for LINUX/UNIX ($VIM/vimfiles/ for Windows; find the value of $VIM with ":echo $VIM" from inside Vim). (0) Save the template files in '$HOME/.vim/c-support/templates/Templates' if you have changed any of them. (1) Copy the zip archive cvim.zip to $HOME/.vim and run unzip cvim.zip If you have already an older version of cvim and you have modified the template files you may want to save your templates first or copy the files from the archive by hand. (2) Loading of plugin files must be enabled. If not use :filetype plugin on This is the minimal content of the file '$HOME/.vimrc'. Create one if there is none. (3) Set at least some personal details in the file '$HOME/.vim/c-support/templates/Templates' (file '$VIM\/c-support/templates/Templates' under Windows). Here is the minimal personalization (my settings as an example, of course): |AUTHOR| = Dr. Fritz Mehner |AUTHORREF| = mn |EMAIL| = mehner@fh-swf.de |COMPANY| = FH Sudwestfalen, Iserlohn |COPYRIGHT| = Copyright (c) |YEAR|, |AUTHOR| (Read more about the template system in the plugin documentation) (4) Consider additional settings in the file '$HOME/.vimrc'. The files customization.vimrc and customization.gvimrc are replacements or extensions for your .vimrc and .gvimrc ( _vimrc and _gvimrc under Windows). You may want to use parts of them. The files are documented. There are a lot of features and options which can be used and influenced: * use of template files and tags * surround marked blocks with statements * using and managing personal code snippets * generate/remove multiline comments * picking up prototypes * C/C++ dictionaries for keyword completion * (re)moving the root menu Restart gVim/Vim generate the help tags :helptags ~/.vim/doc and look at csupport help with :help csupport or use the 'help' item in the root menu of this plug-in. +-----------------------------------------------+ | +-------------------------------------------+ | | | ** PLEASE READ THE DOCUMENTATION ** | | | | Actions differ for different modes! | | | +-------------------------------------------+ | +-----------------------------------------------+ Any problems ? See the TROUBLESHOOTING section at the end of the help file 'doc/csupport.txt'. ======================================================================================= RELEASE NOTES FOR VERSION 5.3 ======================================================================================= + Insertions work properly when foldfolding is used. + Menu items Idioms->for(...) : type declaration for loop variable possible (tab completion). + Specification of command line arguments (Run->cmd. line arg.): filename completion active. + New main menu item 'show manual' (hotkey \hm): read manual for word under cursor. + One hotkey renamed: \h -> \hp (help plugin) OLDER RELEASE NOTES : see file 'ChangeLog' ======================================================================================= ======================================================================================= FILES ======================================================================================= README.csupport This file. doc/csupport.txt The help file for the local on-line help. ftplugin/c.vim A file type plug-in. Define hotkeys, creates a local dictionary for each C/C++ file. plugin/c.vim The C/C++ plug-in for GVIM. c-support/scripts/wrapper.sh The wrapper script for the use of an xterm. c-support/templates/* C-style and C++-style template files (see csupport.txt). c-support/wordlists/c-c++-keywords.list All C and C++ keywords (already in word.list). c-support/wordlists/k+r.list K&R-Book: Words from the table of content. They appear frequently in comments. c-support/wordlists/stl_index.list STL: method and type names. ----------------------- ------------------------------------------------------------- The following files and extensions are for convenience only. c.vim will work without them. ------------------------------------------------------------- c-support/doc/c-hotkeys.pdf Hotkey reference card. c-support/doc/ChangeLog The change log. rc/customization.ctags Additional settings I use in .ctags to enable navigation through makefiles ans qmake files with the plug-in taglist.vim. rc/costumization.gvimrc Additional settings I use in .gvimrc : hot keys, mouse settings, ... The file is commented. Append it to your .gvimrc if you like. rc/costumization.indent.pro Additional settings I use in .indent.pro : See the indent manual. rc/costumization.vimrc Additional settings I use in .vimrc : incremental search, tabstop, hot keys, font, use of dictionaries, ... The file is commented. Append it to your .vimrc if you like. ======================================================================================= ADDITIONAL TIPS ======================================================================================= (1) gVim. Toggle 'insert mode' <--> 'normal mode' with the right mouse button (see mapping in file costumization.gvimrc). (2) gVim. Use tear off menus. (3) Try 'Focus under mouse' as window behavior (No mouse click when the mouse pointer is back from the menu item). (4) Use Emulate3Buttons "on" (X11) even for a 3-button mouse. Pressing left and right button at the same time without moving your fingers is faster then moving a finger to the middle button (often a wheel). ======================================================================================= CREDITS ======================================================================================= Some ideas are taken from the following documents: 1. Recommended C Style and Coding Standards (Indian Hill Style Guide) www.doc.ic.ac.uk/lab/secondyear/cstyle/cstyle.html 2. Programming in C++, Ellemtel Telecommunication Systems Laboratories www.it.bton.ac.uk/burks/burks/language/cpp/cppstyle/ellhome.htm 3. C++ Coding Standard, Todd Hoff www.possibility.com/Cpp/CppCodingStandard.html The splint error format is taken from the file splint.vim (Vim standard distribution). ------------------ ... finally Johann Wolfgang von Goethe (1749-1832), the greatest of the German poets, about LINUX, Vim/gVim and other great tools (Ok, almost.) : Ein Mann, der recht zu wirken denkt, Who on efficient work is bent, Mu auf das beste Werkzeug halten. Must choose the fittest instrument. Faust, Teil 1, Vorspiel auf dem Theater Faust, Part 1, Prologue for the Theatre =======================================================================================

近期下载者

相关文件


收藏者