Search code examples
vimsyntax-highlightingvim-syntax-highlighting

Vim Syntax Highlighting does not work


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?


Solution

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

    filetype plugin on
    syntax on