Friday, January 28, 2011

Re: Starting out with VIM and C++

On Jan 28, 11:18 am, nickatron <ntro...@gmail.com> wrote:
> Hello,
>
> I just started an introductory course on C++, and I would like to take the
> time to use VIM as an IDE. What do I need to do to get colored syntax and
> make it more usable for C++ programming?

To enable syntax highlight and such, you will need to create a .vimrc.
This is highly recommended anyway. There is a reasonable example that
ships with Vim.

Specifically, you will need these lines in your .vimrc file:

filetype plugin indent on
syntax on

Take a look at:

(within Vim): :help usr_05
http://vim.wikia.com/wiki/vimrc
http://vim.wikia.com/wiki/Category:Getting_started

>
> Also for the course I need "Any ANSI or ISO standard C++ compiler". What do
> you recommended?
>

This depends on the platform you will be developing on. gcc is pretty
good and I think it comes standard on most *nix platforms these days.
MinGW provides the same compiler for Windows.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: