I'm trying to make vim a vim syntax file to highlight files for the FlexLM system.
It contains lines with keywords separated by spaces, and I would like to highlight things different colors based on what position they are in.
For example: FEATURE Infinisim infinism 2.4 31-may-2014 1 SUPERSEDE
Each line that starts with the word FEATURE would then have the next word in one color, next in another, etc, separated by spaces.
Is there a way to do this?
Thanks
I have a "noddy" vim file as all I want to see are the basics. Put the following in ~/.vim/syntax/flexlm.vim
You can then set this to be the default syntax highlight with the following in your ~/.vimrc
Obviously you can play with the line depending on your file extensions e.g. .lic etc. You can always type the following in vim
If you feel like extending the syntax highlighting - please post the results back as it would be nice to include options files etc.