LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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, 09: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, 09: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, 11:44 AM   #3
kindofabuzz
Member
 
Registered: Mar 2010
Location: There
Distribution: Linux Mint 17.1
Posts: 237

Rep: Reputation: 45
man vim
 
Old 01-27-2012, 11:53 AM   #4
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 17.3 and 18 at present.
Posts: 1,192

Rep: Reputation: 204Reputation: 204Reputation: 204
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, 12:03 PM   #5
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

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

Rep: Reputation: 133Reputation: 133
+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, 03: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, 06: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, 11: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 05:41 PM
LXer: Windows: Choice But No Choice LXer Syndicated Linux News 0 03-08-2010 03:20 PM
Please give the right choice about the multi-choice question! keika Programming 1 07-22-2009 05:20 AM
LXer: Thank [Deity of Your Choice] For Choice LXer Syndicated Linux News 0 01-10-2008 02:11 AM
my table with programs when i press in button (left down corner) do no show programs sagi7ario Mandriva 1 03-12-2004 01:02 PM


All times are GMT -5. The time now is 10:13 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration