-4

I have an image with CentOS, GCC compiler, and VIM editor. With a long period time ago i achieved to activate C syntax highlighted but i don't remember how, if you could help ?

1 Answers1

2

Create a .vimrc file in your home directory with the following contents.

set nocompatible
filetype plugin indent on
syntax on

The next time you open up a c file you should have syntax highlighting enabled.

FDinoff
  • 30,689
  • 5
  • 75
  • 96