LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Compiler for VIM (https://www.linuxquestions.org/questions/programming-9/compiler-for-vim-625385/)

hongnguyen70 03-03-2008 10:10 AM

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

hansalfredche 03-03-2008 01:00 PM

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.

hongnguyen70 03-04-2008 04:27 AM

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

billymayday 03-04-2008 05:03 AM

try http://www.linuxquestions.org/linux/answers/Programming


All times are GMT -5. The time now is 08:09 AM.