On Feb 3, 4:58 am, nickatron <ntro...@gmail.com> wrote: > I found out you have to save the file as .cpp before it will do syntax > highlighting. It even indents things for me too.
If you don't want to save to a file you can issue the command :set filetype=cpp and it will do the highlighting straight away, and start indenting for what you subsequently enter. To (re)indent everything you've already got you can do gg=G regards, Geoff -- 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