Create a Linux development environment-general Linux technology-Linux programming and kernel information. For more information, see the following. I have used vi, cssag, taglist, and sourceNav a little before, but I am not familiar with them. First, let's take a look at the popular development environment in Linux (refer to 1). Finally, I decided to build my Linux development environment based on vi. "VIM or EMACS is used as the editor, GCC is used as the compiler, automake is used as the project, doxygen is used as the document, and cvs is used for management", which is probably what I want. Someone also mentioned svn as a replacement for cvs.
Tool introduction (refer to 2)
--------------------------------------------------------------------------------
Generally, you can use the sensory location search type definition. However, because of the limited function of ctags, it is not necessarily useful in big projects.
Large programs must participate in global analysis. The analysis is comprehensive, but the prompt information in vim is limited.
The taglist is lean and requires the support of ctags. You can list functions and global parameters on the left. (Sorted)
Csflood is powerful and can jump to functions and some type definitions, but it seems that the definition of analysis enumeration cannot be correctly found under some conditions due to some bugs.
Cppcomplete must be supported by ctags. You can complete the types or function names (not the common Ctrl + P/N type)
The new version of global can be embedded in vim to provide complete parsing and type indexes. Compared with cscope, A little worse, the print list of the type reference does not identify the function in which the reference is carried out. In fact, I think global may not be born for vim. Its main purpose is to use html to express related associations and indexes. It is not as appropriate as csflood.
--------------------------------------------------------------------------------
VIM
-------------------------
VIM is installed on the local machine to the/usr/share/vim/vim70 directory (with $ VIM ). You can configure the VIM parameter by modifying the file content in $ vim/plugin, $ HOME/. VIM and $ HOME/. vimrc.
-------------------------
You can use gvim or vim-g to start vim on the GUI.
-------------------------
VIM, for example, Ctrl-N, can realize automatic completion. [I can view the declaration of the function where the cursor is located, Ctrl-] Jump to the file where the function declaration is located, gd is the declaration of the local variable jump to the current file.
-------------------------
CtagList
-------------------------
Used in VIM
": TlistToggle" command to open/close the taglist window.
": Help taglist" command to get more information about using the taglist plugin.
-------------------------
Ctags
-------------------------
Q: How do I see the definitions in the standard library file?
A:
Create a source code link to the standard library in your directory, and then
Ctags-R *
Vi-t printf
You can see it.
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