C Programming starts in Linux-general Linux technology-Linux programming and kernel information. The following is a detailed description. I started programming in C language for Linux. After a few days, the development environment was finally determined. As the study goes deeper, I will occasionally post my learning experience and share it with you.
The development environment is the first thing to do before programming. After some hitting, I understand the truth: simplicity and practicality are the best. The final goal is on vim + gcc + gdb. I didn't select an integrated development environment, because I still need to understand what this or that control means. There is no great Emacs written by Richard Stallman, the originator of Free Software, because it is easy. Emacs is powerful, but who has time to learn complicated configurations and usage?
Now I have pasted my vim configuration and shared it with you :(~ /. Vimrc. The following content is added to this file to enable automatic indentation during programming for ease of reading)
Set tabstop = 4
Set softtabstop = 4
Set shiftwidth = 4
Set autoindent
Set cindent
Set cinoptions = {s, t0, N-2, p2s, (03 s, =. 5 s,> 1 s, = 1 s,: 1 s
Set nu
That is, use vim as the editor, gcc as the compiler and connector, and gdb for debugging. Because gcc and gdb are built-in, you can just install vim. (Author: Lost track lines)
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