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 ?
Asked
Active
Viewed 972 times
-4
-
1`sy on`? Also, filetypes not enabled? – Amadan Jul 12 '13 at 06:22
-
Any reason for the unaccept? does the answer not work? – FDinoff Jul 23 '13 at 15:06
1 Answers
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