Vim Syntax Highlighting does not work

Gilad Naaman picture Gilad Naaman · Nov 3, 2013 · Viewed 68.3k times · Source

I've installed a fresh Arch Linux system on my laptop and downloaded the vim package.

I haven't altered the .vimrc file, but the syntax highlighting doesn't seem to work with any of the languages I tried (Python, Ruby, CSharp, C...).

Auto formatting (gg, =, G) also fails.

Until now when playing with vim (because I can't really say I've extensively used it) in other OSs (Ubuntu, Fedora), the syntax highlighting came on automatically. Is there something I am missing here?

Answer

Gaurav  picture Gaurav · Nov 3, 2013

You need to have following settings in .vimrc file as per arch linux documentation

filetype plugin on
syntax on