Rc.vim
From tm5
Copy this file (make sure there is not problem with end-of-lines by running dos2unix on it):
" Copy-pasted a lot from examples of IDL. " Gives nice result for color scheme 'evening' " Feel free for hacking this file if version < 600 syntax clear elseif exists("b:current_syntax") finish endif syn keyword rcTodo contained TODO syn region rcString start=+"+ end=+"+ syn region rcString start=+'+ end=+'+ syn match rcRealNumber "\<\d\+\(\.\=\d*e[+-]\=\d\+\|\.\d*d\|\.\d*\|d\)" syn match rcRealNumber "\.\d\+\(d\|e[+-]\=\d\+\)\=" syn match rcNumber "\<\.\@!\d\+\.\@!\(b\|u\|us\|s\|l\|ul\|ll\|ull\)\=\>" syn match rcDblCommaError "\,\s*\," syn match rcDefinition "^\s*\(.:\@!\)*.:" syn match rcVariable "\${\(\l\|\u\|\d\)*}" syn keyword rcNumber F T syn match rcStatement "#eval" syn match rcVariable "\(^\s*#eval\s*\)\@<=\(\u\|\l\|\d\)*=\@=" syn match rcComment "[\!].*$" contains=rcTodo " Define the default highlighting. " For version 5.7 and earlier: only when not done already " For version 5.8 and later: only when an item doesn't have highlighting yet if version >= 508 || !exists("did_idlang_syn_inits") if version < 508 let did_idlang_syn_inits = 1 command -nargs=+ HiLink hi link <args> else command -nargs=+ HiLink hi def link <args> endif HiLink rcDefinition Type HiLink rcStatement Statement HiLink rcContinueLine Todo HiLink rcRealNumber Float HiLink rcNumber Number HiLink rcString String HiLink rcComment Comment HiLink rcTodo Todo HiLink rcDblCommaError Error HiLink rcVariable Special delcommand HiLink endif let b:current_syntax = "idlang" " vim: ts=18