[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: Configuring vi

Can I assume vi == vim? [If vi != vim better give vim a try!]

You gotta hack the files: $VIM/syntax/cpp.vim $VIM/syntax/c.vim
to change the color-coding.

To compile a program, if you have a Makefile, then use :make
and if you wanna compile some individual file then you can use
:!g++ %


Ashwin arranged electrons thus:

> How do I configure vi to display color coding for C++ and if
> possible, how do I compile programs from within vi itself. I'm
> running vi in terminal mode.