VI development environment ~~ Reprinted

Source: Internet
Author: User

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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 :)

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.