LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-03-2008, 10:10 AM   #1
hongnguyen70
LQ Newbie
 
Registered: Jan 2008
Posts: 23

Rep: Reputation: 15
Compiler for VIM


Hello

I have SUSE 9.3 installed and I want to learn to use vim. The thing is I am looking for a compiler program and I am not sure what to do. I know that gcc would do but
1) where can i find gcc?
2) how do I install on my machine?
3) how do I run it?

I have read a few answer in this forum and tried to type a few command but it did not work. For example I tried tying gcc -v it then showed command not found.

Please help

Many thanks
 
Old 03-03-2008, 01:00 PM   #2
hansalfredche
Member
 
Registered: Jun 2005
Posts: 445

Rep: Reputation: 31
You should use Yast for this. Vim should also be avaible from Yast. There is a easy to use GUI for Yast, think it should be labeled "Install software", have a look in the menus.
 
Old 03-04-2008, 04:27 AM   #3
hongnguyen70
LQ Newbie
 
Registered: Jan 2008
Posts: 23

Original Poster
Rep: Reputation: 15
How to compile vim

Thank you I have found Yast and installed gcc. I have started writing a simple vim code and I now need to run to see the output but I am not sure how to compile it. It maybe simple only I dont know how. I read this instruction and tried out but I am not sure how it work. What they mean by "executing them the :@"?

Please help!


Let's start with a simple example:

:let i = 1
:while i < 5
: echo "count is" i
: let i += 1
:endwhile

Note:
The ":" characters are not really needed here. You only need to use
them when you type a command. In a Vim script file they can be left
out. We will use them here anyway to make clear these are colon
commands and make them stand out from Normal mode commands.
Note:
You can try out the examples by yanking the lines from the text here
and executing them with :@"

The output of the example code is:

count is 1
count is 2
count is 3
count is 4
 
Old 03-04-2008, 05:03 AM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
try http://www.linuxquestions.org/linux/answers/Programming
 
  


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
checking for C compiler default output... configure: error: C compiler cannot create fiorejm Linux - Software 6 11-12-2009 12:35 PM
LXer: Vim tips: Using Vim mappings and abbreviations LXer Syndicated Linux News 0 06-18-2006 01:54 PM
LXer: Cream for Vim - Making Vim more user friendly LXer Syndicated Linux News 0 06-17-2006 11:54 PM
Compiler conundrum: Which came first, a compiler, or it's source code? fr0zen Programming 21 01-29-2004 04:31 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:07 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