No syntax highlighting in vim

syntax on , is in ~/.vim file but still not syntax higlighting in vim a.cpp.Why?

What is the filetype set to when you open a cpp file. Are you looking for syntax highlighting when you create a .cpp file from new file, If yes, the reload the file (open it once again). Id the VIM setup correct. are cpp syntax files present. Check if cpp.vim is present in either /usr/share/vim/vim72/syntax or $HOME/.vim/syntax.

zypper in vim-data did the trick.

Great… :slight_smile: