LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 01-26-2012, 08:01 PM   #1
daer119
LQ Newbie
 
Registered: Jan 2012
Posts: 8

Rep: Reputation: Disabled
Best Choice for C programs


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
 
Old 01-26-2012, 08:35 PM   #2
gillbertiddio
Member
 
Registered: Sep 2009
Posts: 33

Rep: Reputation: 6
vim is! It's very powerful - I suggest you read up on it first tho - it is complicated; http://vimdoc.sourceforge.net/

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.
 
Old 01-27-2012, 10:44 AM   #3
kindofabuzz
Member
 
Registered: Mar 2010
Location: There
Distribution: Linux Mint 17.1
Posts: 237

Rep: Reputation: 46
man vim
 
Old 01-27-2012, 10:53 AM   #4
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,673

Rep: Reputation: 487Reputation: 487Reputation: 487Reputation: 487Reputation: 487
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.

Play Bonny! :hatip:
 
Old 01-27-2012, 11:03 AM   #5
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
Just type ' vim ' and follow what is displayed to get help on commands, tutorial etc
(:help + enter)
 
Old 01-27-2012, 02:17 PM   #6
kabamaru
Member
 
Registered: Dec 2011
Location: Greece
Distribution: Slackware
Posts: 276

Rep: Reputation: 134Reputation: 134
+1 for Vim. Install vim and run 'vimtutor' to learn the basics, nice and easy.

And, there's GVim for gui.
 
Old 01-28-2012, 02:50 AM   #7
JESSEJJ89
Member
 
Registered: Dec 2011
Location: North America
Distribution: Gentoo
Posts: 50

Rep: Reputation: 5
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.
 
Old 01-30-2012, 05:52 PM   #8
eehmke
LQ Newbie
 
Registered: Aug 2011
Distribution: Debian, Gentoo
Posts: 24

Rep: Reputation: 0
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.
 
Old 01-30-2012, 10:49 PM   #9
alokanand007
LQ Newbie
 
Registered: Dec 2008
Posts: 20

Rep: Reputation: 0
this link will help you much

http://alok.6te.net/joomla/index.php...-editor-basics
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] KDE 4 - Weird skewed colors in qt4 programs after launching gtk programs. genericflounder Linux - Desktop 3 08-25-2010 04:41 PM
LXer: Windows: Choice But No Choice LXer Syndicated Linux News 0 03-08-2010 02:20 PM
Please give the right choice about the multi-choice question! keika Programming 1 07-22-2009 04:20 AM
LXer: Thank [Deity of Your Choice] For Choice LXer Syndicated Linux News 0 01-10-2008 01:11 AM
my table with programs when i press in button (left down corner) do no show programs sagi7ario Mandriva 1 03-12-2004 12:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration