My .vimrc file is as follows:
filetype plugin indent on syntax on " enables syntax, e.g. text colour set number " show line numbers
The command I use to open files is vim filename. Despite this when I open some files I get all the nice fancy colours in my files whereas I have some files that I can't get the colours to work at all. For example, when I'm editing my .vimrc file the syntax works. When I'm editing another file (called filename.usr - it's just a text file) the syntax doesn't work.
Do you know why this is the case and how I can get the syntax to work correctly for all my files?