" Overwrite some of the syntax defaults hi NonText cterm=NONE ctermfg=0 hi StatusLine cterm=NONE ctermbg=6 hi StatusLineNC cterm=NONE ctermbg=4 hi Cursor cterm=bold ctermfg=7 hi ModeMsg cterm=bold ctermfg=6 hi Visual cterm=NONE ctermbg=0 hi LineNr cterm=NONE ctermfg=4 hi Search cterm=NONE ctermfg=0 ctermbg=3 hi IncSearch cterm=NONE ctermfg=1 ctermbg=3 if has("syntax") let java_mark_braces_in_parens_as_errors=1 let java_highlight_functions=1 let java_highlight_debug=1 " let java_allow_cpp_keywords=1 let html_my_rendering=1 " let java_javascript=1 " let java_css=1 " let java_ignore_javadoc=1 " colors for color terminal (xterm) normal / bold " 0 : gray hi Constant term=NONE cterm=NONE ctermfg=0 " 0b: dirty white hi htmlBold term=underline cterm=bold ctermfg=0 gui=bold guifg=grey80 hi htmlBoldUnderline term=bold,underline cterm=underline,bold ctermfg=0 gui=bold guifg=grey80 " 1 : red hi Statement start=t_md stop=t_me term=NONE cterm=NONE ctermfg=1 gui=NONE guifg=#B00000 " 1b: orange hi Exception start=t_md stop=t_me term=NONE cterm=bold ctermfg=1 gui=NONE guifg=#FF3030 " 2 : green hi Identifier term=underline cterm=NONE ctermfg=2 gui=NONE guifg=green4 hi Type term=NONE cterm=NONE ctermfg=2 gui=NONE guifg=green4 " 2b: light green hi Special term=bold cterm=bold ctermfg=2 gui=NONE guifg=#70FF70 " 3 : yellow hi htmlItalic term=underline cterm=NONE ctermfg=3 gui=NONE guifg=yellow3 hi htmlUnderlineItalic term=underline cterm=underline ctermfg=3 gui=underline guifg=yellow3 " 3b: light yellow hi String term=italic cterm=bold ctermfg=3 gui=NONE guifg=#F0F080 hi htmlBoldItalic term=underline,bold cterm=bold ctermfg=3 gui=bold guifg=#F0F080 hi htmlBoldUnderlineItalic term=underline,bold cterm=underline,bold ctermfg=3 gui=bold,underline guifg=#F0F080 " 4 : blue hi Comment term=bold cterm=NONE ctermfg=4 gui=NONE guifg=blue3 hi htmlLink term=underline cterm=underline ctermfg=4 gui=underline guifg=blue3 " 4b: light blue hi SpecialComment term=NONE cterm=bold ctermfg=4 gui=NONE guifg=#B0B0FF hi javaUserLabel term=NONE cterm=bold ctermfg=4 gui=NONE guifg=#B0B0FF " 5 : magenta hi StorageClass term=underline cterm=NONE ctermfg=5 gui=NONE guifg=#A000A0 hi Structure term=underline cterm=NONE ctermfg=5 gui=NONE guifg=#A000A0 hi Typedef term=underline cterm=bold ctermfg=5 gui=NONE guifg=#EFA0BF " 5b: light magenta hi Boolean term=italic cterm=bold ctermfg=5 gui=NONE guifg=#F0F080 " 6 : cyan " hi htmlItalic term=italic cterm=NONE ctermfg=6 gui=italic guifg=#009999 hi Number term=italic cterm=NONE ctermfg=6 gui=italic guifg=#009999 " 6b: light cyan hi Title term=bold cterm=bold,underline ctermfg=6 gui=bold,underline guifg=#A0FFFF hi htmlH2 term=bold cterm=bold ctermfg=6 gui=bold guifg=#A0FFFF " 7 : light brown hi PreCondit term=underline cterm=NONE ctermfg=7 gui=NONE guifg=#D0B099 hi PreProc term=underline cterm=NONE ctermfg=7 gui=NONE guifg=#D0B099 " 7b: white hi Function start=t_md stop=t_me term=NONE cterm=bold ctermfg=7 gui=NONE guifg=white " normal: black " bold : bluegreen hi Todo term=standout cterm=bold ctermbg=4 ctermfg=7 gui=NONE guifg=white guibg=blue3 hi Error term=reverse cterm=bold ctermbg=1 gui=NONE guibg=#B00000 hi Debug term=NONE cterm=NONE ctermbg=7 ctermfg=1 gui=NONE guifg=#B00000 guibg=#D0B099 hi DebugString term=italic cterm=NONE ctermbg=7 ctermfg=2 gui=NONE guifg=green4 guibg=#D0B099 hi DebugType term=underline cterm=NONE ctermbg=7 ctermfg=5 gui=NONE guifg=#A000A0 guibg=#D0B099 gui=NONE hi DebugSpecial term=bold cterm=bold ctermbg=7 ctermfg=2 gui=NONE guifg=#70FF70 guibg=#D0B099 gui=NONE hi htmlUnderline term=underline cterm=underline gui=underline hi Normal guifg=#000000 guibg=#AD926E if has("gui_running") if $DISPLAY =~ '^\(mergoscia\|:0\)' set guifont=-misc-fixed-bold-r-normal--13-120-75-75-c-80-iso8859-1 else hi Error gui=NONE guibg=red3 hi Statement gui=NONE guifg=red3 hi Exception gui=NONE guifg=red hi PreCondit gui=NONE guifg=antiquewhite hi PreProc gui=NONE guifg=antiquewhite hi StorageClass gui=NONE guifg=magenta3 hi Structure gui=NONE guifg=magenta3 hi Typedef gui=NONE guifg=#FFD0FF hi String gui=NONE guifg=#FFFFA0 hi Comment gui=NONE guifg=blue3 hi htmlLink gui=underline guifg=blue3 hi Special gui=NONE guifg=green1 hi Todo gui=NONE guifg=white guibg=blue3 hi Identifier gui=NONE guifg=green4 hi Function gui=NONE guifg=white hi htmlBold gui=bold guifg=white hi Type gui=NONE guifg=green4 hi SpecialComment gui=NONE guifg=lightblue1 hi Debug gui=NONE guifg=red3 guibg=antiquewhite hi DebugString gui=NONE guifg=green4 guibg=antiquewhite hi DebugType gui=NONE guifg=magenta3 guibg=antiquewhite hi DebugSpecial gui=NONE guifg=green1 guibg=antiquewhite endif endif hi link CommentTitle SpecialComment " hi link Number NONE hi link Character String hi link DebugBoolean Debug hi link Boolean Typedef augroup syntax " ADSM opt file au! BufNewFile, BufReadPost *.opt au BufNewFile,BufReadPost *.opt source $VIM/mysyntax/adsm.vim " ASP au! BufNewFile, BufReadPost *.asp au BufNewFile,BufReadPost *.asp source $VIM/mysyntax/asp.vim " CT log files au! BufNewFile, BufReadPost *log au BufNewFile,BufReadPost *log source $VIM/mysyntax/log.vim " ASN au! BufNewFile, BufReadPost *.asn au BufNewFile,BufReadPost *.asn source $VIM/mysyntax/asn.vim " GCS Config au! BufNewFile,BufReadPost *.cfg au BufNewFile,BufReadPost *.cfg source $VIM/mysyntax/cfg.vim " CSS Files au! BufNewFile,BufReadPost *.css au BufNewFile,BufReadPost *.css source $VIM/mysyntax/css.vim " Mocha au! BufNewFile,BufReadPost *.mocha,*.wingdis au BufNewFile,BufReadPost *.mocha,*.wingdis so $VIM/mysyntax/java.vim " Test au! BufNewFile,BufReadPost test au BufNewFile,BufReadPost test so $VIM/mysyntax/test.vim " My Mail (xmh) " au! BufNewFile,BufReadPost [1-9],[1-9][0-9],[1-9][0-9][0-9],[1-9][0-9]*[0-9][0-9] " au BufNewFile,BufReadPost [1-9],[1-9][0-9],[1-9][0-9][0-9],[1-9][0-9]*[0-9][0-9] so $VIM/mysyntax/xmh.vim " au! BufNewFile,BufReadPost draft.[1-9],draft.[1-9][0-9],draft.[1-9][0-9][0-9],draft.[1-9][0-9]*[0-9][0-9] " au BufNewFile,BufReadPost draft.[1-9],draft.[1-9][0-9],draft.[1-9][0-9][0-9],draft.[1-9][0-9]*[0-9][0-9] so $VIM/mysyntax/xmh.vim " .vmh_cache " au! BufNewFile,BufReadPost .vmh_cache " au BufNewFile,BufReadPost .vmh_cache so $VIM/mysyntax/vmh_cache.vim " HTML au! BufNewFile,BufReadPost *.html,*.htm au BufNewFile,BufReadPost *.html,*.htm,*.m4 so $VIM/mysyntax/html.vim " JavaScript au! BufNewFile,BufReadPost *.js,*.javascript au BufNewFile,BufReadPost *.js,*.javascript so $VIM/mysyntax/javascript.vim " Java au! BufNewFile,BufReadPost *.java au BufNewFile,BufReadPost *.java so $VIM/mysyntax/java.vim " JavaCC au! BufNewFile,BufReadPost *.jj au BufNewFile,BufReadPost *.jj so $VIM/mysyntax/javacc.vim " Lex " au! BufNewFile,BufReadPost *.lex,*.l " au BufNewFile,BufReadPost *.lex,*.l so $VIM/mysyntax/lex.vim " Makefile au! BufNewFile,BufReadPost [mM]akefile* au BufNewFile,BufReadPost [mM]akefile* so $VIM/mysyntax/make.vim " POV au! BufNewFile,BufReadPost *.pov,*.inc au BufNewFile,BufReadPost *.pov,*.inc so $VIM/mysyntax/pov.vim " Yacc " au! BufNewFile,BufReadPost *.y " au BufNewFile,BufReadPost *.y so $VIM/syntax/yacc.vim augroup END endif