ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
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 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.
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.
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 :@"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.