Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've decided to learn C programming yet was wondering what would be good to use to create the source? Vim, anjuta ide, or any others?
I'm setting up my linux to not boot up my GUI and go to tt2, so I was thinking Vim would be good, but how do I create a file, and start writing in it? Sorry if this seems silly, but cant really find the info. So if you could just maybe a break down how you'd create that first program with vim from the shell would be great. Thanks
To create a file simply type vim /path/name/of/file - to save your changes "write" them entering command mode (colon) followed by "w" hence :w - if you are done and wish to close the session :wq or :x - if you are done and don't want to save :q! forces the session closed with no changes.
For C editing I recommend you enable color coding via an advanced .vimrc file - to help your coding efforts. Google vimrc or read the documentation.
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,673
Rep:
vim's very powerfull but I must admit to a fondness for nano which doesn't require the seemingly strange keys needed to scroll round the screen and enter commands.
You'll usually find vim (or vi) on any *nix system. nano? Maybe not.
If your new to programming, Start off with Gedit (or other simple txt editor). You'll be entirely focused on coding & learning, instead worrying about the IDE environment your using.
I agree that one should know the basics of vim, as it runs on every linux from scratch. But after several years I still don't like it for daily work. I don't want to start the editor war again, but there are others, like nano and joe. I prefer joe because I find the key commands more intuitive. Find your own favorite editor. All good editors have syntax highlighting, which can be helpful.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.