" mysyntax.vim - personal vim syntax support file " Steve Kinzler, steve@kinzler.com, Nov 98/May 14 " https://kinzler.com/me/home.html#vi let html_no_rendering=1 " Note: on some 16-color ansi terminals, vim swaps these colors, " see *cterm-colors*: *Blue <--> *Red *Cyan <--> *Yellow if &background == "dark" hi Comment cterm=NONE ctermfg=Cyan gui=NONE guifg=#FFFF00 hi Constant cterm=NONE ctermfg=Magenta gui=NONE guifg=#FF00FF hi Special cterm=NONE ctermfg=LightRed gui=NONE guifg=#1E90FF hi Identifier cterm=NONE ctermfg=DarkCyan gui=NONE guifg=#D2B48C hi Statement cterm=NONE ctermfg=Yellow gui=NONE guifg=#00FFFF hi PreProc cterm=NONE ctermfg=LightBlue gui=NONE guifg=#FF6347 hi Type cterm=NONE ctermfg=LightGreen gui=NONE guifg=#00FF00 hi Ignore cterm=NONE ctermfg=DarkGrey gui=NONE guifg=#708090 hi Error cterm=NONE ctermfg=White ctermbg=Red hi Error gui=NONE guifg=#FFFFFF guibg=#1E90FF hi Todo cterm=NONE ctermfg=Black ctermbg=Yellow hi Todo gui=NONE guifg=#000000 guibg=#00FFFF " Note: This has nothing to do with cscope. This is just a coincidental, " unreliable difference I'm using to test whether this is RHEL 5 " vim 7.0.109 where I've found that the color swaps noted above don't " occur for some unknown reason, so we adjust here. This adjustment " isn't complete and wants a better, unkludged solution. *sigh* "if version == 700 && &cscopeprg == "/usr/bin/cscope" " 2014-05-06 We now assume this standard, ie non-swapping, behavior: "if 1 " 2015-08-13 Oops, old freeware 6.3 vim on HITS AIX needs this: if version != 603 hi Comment cterm=NONE ctermfg=Yellow gui=NONE guifg=#FFFF00 hi Special cterm=NONE ctermfg=LightBlue gui=NONE guifg=#1E90FF hi Identifier cterm=NONE ctermfg=DarkYellow gui=NONE guifg=#D2B48C hi Statement cterm=NONE ctermfg=Cyan gui=NONE guifg=#00FFFF hi PreProc cterm=NONE ctermfg=LightRed gui=NONE guifg=#FF6347 hi Error cterm=NONE ctermfg=White ctermbg=Blue hi Todo cterm=NONE ctermfg=Black ctermbg=Cyan hi Search cterm=NONE ctermfg=Black ctermbg=Cyan endif endif au BufNewFile,BufRead .mailrc so $VIMRUNTIME/syntax/csh.vim au BufNewFile,BufRead autohandler exe "so ".myvimdir."/syntax/mason.vim" au BufNewFile,BufRead dhandler exe "so ".myvimdir."/syntax/mason.vim" au BufNewFile,BufRead *.mason exe "so ".myvimdir."/syntax/mason.vim" au BufNewFile,BufRead *.mbox so $VIMRUNTIME/syntax/mail.vim au BufNewFile,BufRead *.xbm so $VIMRUNTIME/syntax/c.vim au BufNewFile,BufRead */Apache/*/conf/*.conf* so $VIMRUNTIME/syntax/apache.vim if version >= 503 au BufNewFile,BufRead *[xX]resources* so $VIMRUNTIME/syntax/xdefaults.vim endif if version >= 504 au BufNewFile,BufRead .mailrc set filetype=csh au BufNewFile,BufRead autohandler set filetype=mason au BufNewFile,BufRead dhandler set filetype=mason au BufNewFile,BufRead *.mason set filetype=mason au Syntax comment exe "so ".myvimdir."/syntax/comment.vim" au Syntax mason exe "so ".myvimdir."/syntax/mason.vim" au Syntax oracularities exe "so ".myvimdir."/syntax/oracularities.vim" endif if has("gui") amenu 50.10.255 &Syntax.&ABCD.Comment :exe "so ".myvimdir."/syntax/comment.vim" amenu 50.30.205 &Syntax.&KLM.Mason :exe "so ".myvimdir."/syntax/mason.vim" amenu 50.40.135 &Syntax.&NOPQ.Oracularities :exe "so ".myvimdir."/syntax/oracularities.vim" endif