did you get syntax highlighting working?it is not necessary to create & add the command to .vimrc file in your home dir.
When you tried the command directly from inside vim, it should have worked. :syntax enable should not give error Have you installed vim explicitly?By default there is only a basic minimal vim installed which doesnt have syntax highlighting.
You should try this sudo apt-get install vim
