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?
filename.usr
to have? What words mean something special depends on what the file is used for -- it's not going to highlight any arbitrary file.share/vim/vim*/syntax/*
may be of interest. I guess for a unknown file type one could go all Jackson Pollack and spray colors everywhere?