Using Vim to build a C/C ++ Development Environment Program There are three types of members: Emacs, Vim, and Third. It means that if a programmer does not use either of them, it cannot be classified as a streaming person. For people who use C/C ++, many people like Emacs. It is said that the worship of Stallman is related to hooku and Wu.-) Of course, although Emacs and VIM have equivalent performance in text editing, they are quite different in use: Vim is developed for programmers and is powerful and practical; in addition to text editing, Emacs is the "first human life" in Unix. It can also use plug-ins to complete various operations, including listening to MP3, sending emails, and even making coffee, emacs is more like a "lifestyle ". To put it bluntly, I personally use Vim. When writing C/C ++ programs, it is still not good to use only Vim's own functions. Other plug-ins are also needed, construct an IDE that is much better than VC. Since each tool is not completely described in one or two sentences, only the plug-in name is listed below, and the specific content is Google ;-) the Vim plug-in can be downloaded from www.vim.org, which is the most common tool used by vimer.
-
- Ctags, non-Vim plug-in. Ctags is an essential tool for VIM. It can extract a series of information about the macros, variables, functions, and classes of C/C ++ to facilitate switching. Ctags can also be replaced by more powerful csags.
- Taglist, VIM plug-in. Taglist is one of the powerful tools of VIM that works with ctags. Its function is to make all the information of the current buffer into a list and place it next to it. You can switch it at any time.
-
- Omnicppcomplete and VIM plug-ins. Its function, as its name implies, is an automatic completion tool (not a simple Ctrl + n). For example, if a class is defined as myclass and an instance is generated as myclass C, enter C. then a box is displayed, which contains all the member functions of C.
-
- Csupport, VIM plug-in. This is a very good C/C ++ ide. With what compilation and running can be done with one click, defining a class with one click can provide a template format, which is quite practical.
-
- Clewn, non-Vim plug-in. It is used to connect vim and GDB (I have never heard of GDB? Google makes up a course ~). When opening clewn, it uses netbeans to seamlessly connect gvim and GDB. It can also place the mouse over the variable name during debugging like Matlab, there will be a ballon to show the variable's finger. Is it dazzling? Who said that only Emacs can be combined with GDB? Another alternative is vimgdb, which is a Vim plug-in.
- Doxygenkit. The most powerful tool that combines annotation and documentation is of course doxygen. With doxygenkit, you can use Vim to write the doxygen format with one click.
So far, the C/C ++ ide of vim I have customized has been done, and it is really cool to use it than that of VC. In addition to the above plug-ins, tools such as vimshell and project are commonly used in Vim, which have very good effects. Please feel free to use vimers :)