This commit is contained in:
2021-02-27 18:15:05 -05:00
6 changed files with 158 additions and 114 deletions

View File

@ -23,67 +23,84 @@ syn match cxxErrorNames "\<[A-Z][A-Za-z0-9_]*Error\>"
syn match cxxCast "\<\(const\|static\|dynamic\|reinterpret\)_cast\s*\(<\)\@=" syn match cxxCast "\<\(const\|static\|dynamic\|reinterpret\)_cast\s*\(<\)\@="
syn match cxxStlPrefix "\<std\(::\)\@=" syn cluster cxxLibraryBits contains=cxxStlKeywords,cxxStlFunctions,cxxStlService,cxxStlTypes,cxxStlConstant,cxxStlExceptionNames
syn cluster cxxIgnoreCGroupingErrors contains=NONE
syn cluster cParenGroup add=@cxxIgnoreCGroupingErrors
syn cluster cxxIgnoreCGroupingErrors add=@cxxLibraryBits
"syn cluster cxxLibrary contains=cxxStlLibrary,cxxBoostLibrary
"syn region cxxStlLibrary start="\<std\(::\)\@<=" end="\( \|<\|(\)"
"syn region cxxBoostLibrary start="\<boost\(::\)\@<=" end="\( \|<\|(\)"
"syn region cxxStlLibrary start="\<std\(::\)\@<=" end="\( \|<\|(\|;\)\@="
syn region cxxStlLibrary matchgroup=cxxLibPrefix start="\<\(std\)\z(::\)\@=" matchgroup=NONE skip="\z1" end="\>" transparent
syn region cxxBoostLibrary matchgroup=cxxLibPrefix start="\<\(boost\)\z(::\)\@=" matchgroup=NONE skip="\z1" end="\>" transparent
"syn match "::" containedin=@cxxLibrary contained
"end="::\(.*\)\@>\>"
" Broken?
"syn region cxxStlLibrary start="\(\<std\)\(::\)" end="\( \|;\|(\|<\|$\)\@="
"syn region cxxBoostLibrary start="\(\<\(bp_\)\?boost\)\(::\)\@=" end="\( \|;\|(\|<\|$\)\@="
syn match cxxStlTypes "\(\<std::\)\@<=\(\(i\|o\)\(f\|string\)\?stream\)\>"
syn match cxxStlTypes "\(\<std::\)\@<=\(iostream\)\>"
syn match cxxStlTypes "\(\<std::\)\@<=basic_string\(<\)\@="
syn match cxxStlTypes "\(std::\)\@<=\(vector\|array\|deque\|list\|pair\|\(priority_\)\?queue\|stack\|\(unordered_\)\?\(multi\)\?\(set\|map\)\)\(<\|;\| \)\@="
syn match cxxStlService "\(std::\)\@<=\(cout\|clog\|cerr\)\>" syn keyword cxxStlKeywords containedin=cxxStlLibrary,cxxBoostLibrary string_view mutex thread contained
syn match cxxStlConstant "\(std::\)\@<=\(endl\|flush\)\>" syn keyword cxxStlKeywords containedin=cxxStlLibrary string contained
syn match cxxStlKeywords "\(\<std::\)\@<=string\>" syn keyword cxxStlKeywords containedin=cxxStlLibrary,cxxBoostLibrary shared_ptr weak_ptr contained
syn match cxxStlKeywords "\(\<std::\)\@<=mutex\>" syn keyword cxxStlKeywords containedin=cxxStlLibrary unique_ptr nullptr_t contained
" syn match cxxStlTypes "\(std::\)\@<=\(vector\|array\|deque\|list\|pair\|\(priority_\)\?queue\|stack\|\(unordered_\)\?\(multi\)\?\(set\|map\)\)\(<\|;\| \)\@=" syn keyword cxxStlKeywords containedin=cxxStlLibrary,cxxBoostLibrary function contained
syn match cxxStlKeywords "\(std::\)\@<=\(unique_ptr\)\(<\|;\| \|\>\)\@="
syn match cxxStlKeywords "\(std::\)\@<=\(shared_ptr\)\(<\|;\| \|\>\)\@="
syn match cxxStlKeywords "\(std::\)\@<=\(weak_ptr\)\(<\|;\| \|\>\)\@="
syn match cxxStlKeywords "\(std::\)\@<=nullptr_t\>"
syn match cxxStlKeywords "\(std::\)\@<=function\>"
syn match cxxStlFunctions "\(std::\)\@<=make_\(unique\|shared\)\(<\)\@=" syn keyword cxxStlTypes containedin=cxxStlLibrary iostream istream ostream fstream ifstream ofstream contained
syn match cxxStlFunctions "\(std::\)\@<=make_\(pair\|tuple\)\((\|<\)\@=" syn keyword cxxStlTypes containedin=cxxStlLibrary stringstream istringstream ostringstream contained
syn keyword cxxStlTypes containedin=cxxStlLibrary iostream basic_string vector deque list pair queue priority_queue stack map multimap set multiset contained
syn match cxxStlFunctions "\(std::\)\@<=addressof\((\)\@=" syn keyword cxxStlTypes containedin=cxxStlLibrary,cxxBoostLibrary array contained
syn match cxxStlFunctions "\(std::\)\@<=tie\((\)\@=" syn keyword cxxStlTypes containedin=cxxStlLibrary,cxxBoostLibrary unordered_map unordered_multimap contained
syn match cxxStlFunctions "\(std::\)\@<=copy\(_\(n\|backward\|if\)\)\?\((\)\@=" syn keyword cxxStlTypes containedin=cxxStlLibrary,cxxBoostLibrary unordered_set unordered_multiset contained
syn match cxxStlFunctions "\(std::\)\@<=find\(_\(if\|first_of\|end\)\?\)\((\)\@="
syn match cxxStlFunctions "\(std::\)\@<=count\(_if\)\?\((\)\@="
syn match cxxStlFunctions "\(std::\)\@<=\(transform\|mismatch\|equal\|accumulate\|move\)\((\)\@="
syn match cxxStlFunctions "\(std::\)\@<=search\(_n\)\?\((\)\@="
syn match cxxStlFunctions "\(std::\)\@<=fill\(_n\)\?\((\)\@="
syn match cxxStlFunctions "\(std::\)\@<=generate\(_n\)\?\((\)\@="
syn match cxxStlFunctions "\(std::\)\@<=replace\(_copy\)\?\(_if\)\?\((\)\@="
syn match cxxStlFunctions "\(std::\)\@<=\(unique\|reverse\|rotate\)\(_copy\)\?\((\)\@="
syn match cxxStlFunctions "\(std::\)\@<=\(stable_\)\?\(partition\|sort\)\((\)\@="
syn match cxxStlFunctions "\(std::\)\@<=partial_sort\(_copy\)\?\((\)\@="
syn match cxxStlFunctions "\(std::\)\@<=\(inplace_\)\?merge\((\)\@="
syn match cxxStlFunctions "\(std::\)\@<=\(inplace_\)\?merge\((\)\@="
syn match cxxStlFunctions "\(std::\)\@<=set_\(union\|intersection\|\(symmetric_\)\?difference\)\((\)\@="
syn match cxxStlFunctions "\(std::\)\@<=\(push\|pop\|make\|is\|sort\)_heap\((\)\@="
syn match cxxStlFunctions "\(std::\)\@<=\(min\|max\)\(_element\)\?\((\)\@="
syn match cxxStlFunctions "\(std::\)\@<=\(front_\|back_\)\?\(inserter\)\((\)\@="
syn match cxxStlTraits "\(std::\)\@<=\(is_convertible\)\(<\)\@="
syn match cxxStlTraits "\(std::\)\@<=\(is_\(default_\)\?constructible\)\(<\)\@="
syn match cxxStlFunctions "\<\(back_inserter\|begin\|end\)\((\)\@=" syn keyword cxxStlService containedin=cxxStlLibrary cout clog cerr contained
syn keyword cxxStlConstant containedin=cxxStlLibrary endl flush contained
syn match cxxStlExceptionNames "\(std::\)\@<=exception\>" syn keyword cxxStlFunctions containedin=cxxStlLibrary,cxxBoostLibrary make_shared make_tuple contained
syn match cxxStlExceptionNames "\(std::\)\@<=runtime_error\>" syn keyword cxxStlFunctions containedin=cxxStlLibrary make_unique make_pair tie addressof contained
syn match cxxStlExceptionNames "\(std::\)\@<=logic_error\>" syn keyword cxxStlFunctions containedin=cxxStlLibrary copy copy_n copy_if copy_backward replace_copy_if replace_copy contained
syn match cxxStlExceptionNames "\(std::\)\@<=bad_typeid\>" syn keyword cxxStlFunctions containedin=cxxStlLibrary find find_if find_first_of find_end contained
syn match cxxStlExceptionNames "\(std::\)\@<=bad_cast\>" syn keyword cxxStlFunctions containedin=cxxStlLibrary count count_if search search_n contained
syn match cxxStlExceptionNames "\(std::\)\@<=bad_alloc\>" syn keyword cxxStlFunctions containedin=cxxStlLibrary transform mismatch equal accumulate move contained
syn match cxxStlExceptionNames "\(std::\)\@<=bad_array_new_length\>" syn keyword cxxStlFunctions containedin=cxxStlLibrary generate generate_n fill fill_n contained
syn match cxxStlExceptionNames "\(std::\)\@<=bad_exception\>" syn keyword cxxStlFunctions containedin=cxxStlLibrary unique reverse rotate contained
syn match cxxStlExceptionNames "\(std::\)\@<=invalid_argument\>" syn keyword cxxStlFunctions containedin=cxxStlLibrary unique_copy reverse_copy rotate_copy contained
syn match cxxStlExceptionNames "\(std::\)\@<=domain_error\>" syn keyword cxxStlFunctions containedin=cxxStlLibrary sort stable_sort partition stable_partition contained
syn match cxxStlExceptionNames "\(std::\)\@<=out_of_range\>" syn keyword cxxStlFunctions containedin=cxxStlLibrary partial_sort partial_sort_copy contained
syn match cxxStlExceptionNames "\(std::\)\@<=range_error\>" syn keyword cxxStlFunctions containedin=cxxStlLibrary merge inplace_merge contained
syn match cxxStlExceptionNames "\(std::\)\@<=\(overflow\|underflow\)_error\>" syn keyword cxxStlFunctions containedin=cxxStlLibrary set_union set_intersection contained
syn keyword cxxStlFunctions containedin=cxxStlLibrary set_difference set_symmetric_difference contained
syn keyword cxxStlFunctions containedin=cxxStlLibrary make_heap is_heap sort_heap push_heap pop_heap contained
syn keyword cxxStlFunctions containedin=cxxStlLibrary min max min_element max_element contained
syn keyword cxxStlFunctions containedin=cxxStlLibrary getline contained
syn keyword cxxStlTraits containedin=cxxStlLibrary is_convertible contained
syn keyword cxxStlTraits containedin=cxxStlLibrary is_constructible is_default_constructible contained
syn keyword cxxStlFreeFunctions back_inserter front_inserter inserter begin end
syn keyword cxxStlExceptionNames containedin=cxxStlLibrary exception contained
syn keyword cxxStlExceptionNames containedin=cxxStlLibrary runtime_error contained
syn keyword cxxStlExceptionNames containedin=cxxStlLibrary logic_error contained
syn keyword cxxStlExceptionNames containedin=cxxStlLibrary bad_typeid contained
syn keyword cxxStlExceptionNames containedin=cxxStlLibrary bad_cast contained
syn keyword cxxStlExceptionNames containedin=cxxStlLibrary bad_alloc contained
syn keyword cxxStlExceptionNames containedin=cxxStlLibrary bad_array_new_length contained
syn keyword cxxStlExceptionNames containedin=cxxStlLibrary bad_exception contained
syn keyword cxxStlExceptionNames containedin=cxxStlLibrary invalid_argument contained
syn keyword cxxStlExceptionNames containedin=cxxStlLibrary domain_error contained
syn keyword cxxStlExceptionNames containedin=cxxStlLibrary out_of_range contained
syn keyword cxxStlExceptionNames containedin=cxxStlLibrary range_error contained
syn keyword cxxStlExceptionNames containedin=cxxStlLibrary overflow_error contained
syn keyword cxxStlExceptionNames containedin=cxxStlLibrary underflow_error contained
syn match cxxStlDangerousFunction "\(\.\)\@<=release()" syn match cxxStlDangerousFunction "\(\.\)\@<=release()"
@ -99,6 +116,9 @@ if version >= 508 || !exists("did_cxx_syntax_inits")
command -nargs=+ HiLink hi def link <args> command -nargs=+ HiLink hi def link <args>
endif endif
"HiLink cxxStlLibrary cxxLibPrefix
"HiLink cxxBoostLibrary cxxLibPrefix
HiLink cxxObjects Object HiLink cxxObjects Object
HiLink cxxCast cxxStatement HiLink cxxCast cxxStatement
@ -116,7 +136,10 @@ if version >= 508 || !exists("did_cxx_syntax_inits")
HiLink cxxStlTypes Object HiLink cxxStlTypes Object
HiLink cxxStlKeywords cppType HiLink cxxStlKeywords cppType
HiLink cxxStlFunctions cppStatement HiLink cxxStlFunctions cppStatement
HiLink cxxStlPrefix Caller HiLink cxxStlFreeFunctions cppStatement
HiLink cxxLibPrefix Caller
HiLink cxxStlTraits MetaFunction HiLink cxxStlTraits MetaFunction
HiLink cxxMetaFunction MetaFunction HiLink cxxMetaFunction MetaFunction

View File

@ -23,21 +23,26 @@ let g:colors_name="adam"
" Last Change: 2013 May 24 " Last Change: 2013 May 24
set background=dark set background=dark
hi Normal ctermfg=lightgrey hi Normal ctermfg=lightgrey start=<esc>[0m stop=<esc>[0m
"hi NonText ctermfg=yellow ctermbg=grey "hi NonText ctermfg=yellow ctermbg=grey
hi comment ctermfg=green "hi comment ctermfg=green
hi constant ctermfg=magenta cterm=bold hi constant ctermfg=magenta term=none start=<esc>[95m stop=<esc>[0m
"hi constant ctermfg=magenta cterm=bold
"hi identifier ctermfg=cyan cterm=NONE "hi identifier ctermfg=cyan cterm=NONE
hi statement ctermfg=yellow cterm=NONE hi statement ctermfg=yellow cterm=NONE term=none start=<esc>[93m stop=<esc>[0m
hi preproc ctermfg=blue hi preproc ctermfg=blue term=none start=<esc>[94m stop=<esc>[0m
hi type ctermfg=green cterm=bold hi type ctermfg=green term=none start=<esc>[92m stop=<esc>[0m
"hi type ctermfg=green cterm=bold
"hi special ctermfg=yellow "hi special ctermfg=yellow
hi ErrorMsg ctermfg=White ctermbg=Red hi Special ctermfg=Blue guifg=Blue term=none start=<esc>[94m stop=<esc>[0m
hi ErrorMsg ctermfg=White ctermbg=Red term=none start=<esc>[97;101m stop=<esc>[0m
hi WarningMsg ctermfg=Black ctermbg=Green hi WarningMsg ctermfg=Black ctermbg=Green
hi Error ctermbg=Red "hi Error ctermbg=Red
hi Todo ctermfg=Black ctermbg=yellow " Highlight for TODO XXX FIXME, etc.
hi Cursor ctermfg=blue hi Todo ctermfg=Black ctermbg=yellow term=none start=<esc>[103;90m stop=<esc>[0m
hi Directory ctermfg=Blue
hi Cursor ctermfg=blue term=none start=<esc>[94m stop=<esc>[0m
hi Directory ctermfg=Blue term=none start=<esc>[94m stop=<esc>[0m
" Directory thru netrw " Directory thru netrw
@ -58,21 +63,21 @@ hi ShowMarksHL ctermbg=yellow ctermfg=black cterm=bold
hi CursorLine ctermbg=yellow ctermfg=black cterm=bold hi CursorLine ctermbg=yellow ctermfg=black cterm=bold
"hi StatusLineNC cterm=NONE ctermfg=lightblue ctermbg=darkblue "hi StatusLineNC cterm=NONE ctermfg=lightblue ctermbg=darkblue
"hi StatusLine cterm=bold ctermfg=cyan ctermbg=blue "hi StatusLine cterm=bold ctermfg=cyan ctermbg=blue
hi label ctermfg=yellow hi label ctermfg=yellow term=none start=<esc>[93m stop=<esc>[0m
hi operator ctermfg=yellow hi operator ctermfg=yellow term=none start=<esc>[93m stop=<esc>[0m
hi clear Visual hi clear Visual
hi Visual cterm=reverse term=reverse hi Visual cterm=reverse term=reverse
hi DiffChange ctermfg=darkgreen hi DiffChange ctermfg=darkgreen term=none start=<esc>[32m stop=<esc>[0m
hi DiffFile ctermfg=green hi DiffFile ctermfg=green term=none start=<esc>[92m stop=<esc>[0m
hi DiffSubname ctermfg=cyan hi DiffSubname ctermfg=cyan term=none start=<esc>[96m stop=<esc>[0m
hi DiffIndexLine ctermfg=cyan hi DiffIndexLine ctermfg=cyan term=none start=<esc>[96m stop=<esc>[0m
hi diffAdded ctermfg=blue hi diffAdded ctermfg=blue term=none start=<esc>[94m stop=<esc>[0m
hi diffRemoved ctermfg=red hi diffRemoved ctermfg=red term=none start=<esc>[91m stop=<esc>[0m
hi DiffLine ctermfg=yellow hi DiffLine ctermfg=yellow term=none start=<esc>[93m stop=<esc>[0m
"hi DiffLine ctermfg=magenta "hi DiffLine ctermfg=magenta
hi Folded ctermbg=darkgrey hi Folded ctermbg=darkgrey
hi FoldColumn ctermbg=darkgrey ctermfg=white hi FoldColumn ctermbg=darkgrey ctermfg=white
hi cIf0 ctermfg=gray hi cIf0 ctermfg=gray term=none start=<esc>[38;2;100;100;100m stop=<esc>[0m
"hi diffOnly ctermfg=red cterm=bold "hi diffOnly ctermfg=red cterm=bold
" End of ron above. " End of ron above.
@ -82,53 +87,55 @@ hi cIf0 ctermfg=gray
"hi StatusUnwrap ctermfg=brown ctermbg=none cterm=none "hi StatusUnwrap ctermfg=brown ctermbg=none cterm=none
"hi StatusUnwrap ctermfg=236 ctermbg=none cterm=none "hi StatusUnwrap ctermfg=236 ctermbg=none cterm=none
hi StatusUnwrap ctermfg=58 ctermbg=none cterm=none hi StatusUnwrap ctermfg=58 ctermbg=none cterm=none
hi Comment ctermfg=darkgrey cterm=bold hi Comment ctermfg=darkgrey cterm=none term=NONE term=none start=<esc>[38;5;242m stop=<esc>[0m
hi Identifier ctermfg=cyan hi Identifier ctermfg=cyan cterm=none term=none start=<esc>[96m stop=<esc>[0m
hi Object ctermfg=red hi Object ctermfg=red term=none start=<esc>[91m stop=<esc>[0m
hi Exception ctermfg=brown hi Exception ctermfg=brown term=none start=<esc>[38;5;130m stop=<esc>[0m
hi Service ctermfg=green hi Service ctermfg=green start=<esc>[32m stop=<esc>[0m
hi Error ctermbg=red ctermfg=white cterm=bold hi Error ctermbg=red ctermfg=white cterm=none term=none start=<esc>[101;97m stop=<esc>[0m
hi Caller ctermfg=cyan hi Caller ctermfg=cyan term=NONE start=<esc>[96m stop=<esc>[0m
hi Target ctermfg=green ctermbg=red hi Target ctermfg=green ctermbg=red
hi Sync ctermfg=green ctermbg=red hi Sync ctermfg=green ctermbg=red
hi Debug ctermfg=darkgreen hi Debug ctermfg=darkgreen
hi MetaFunction ctermfg=darkcyan hi MetaFunction ctermfg=darkcyan
hi Dangerous ctermfg=red ctermbg=white cterm=bold,underline,italic hi Dangerous term=none start=<esc>[1;7;97;101;3;4;6m stop=<esc>[0m ctermfg=white ctermbg=red cterm=reverse,bold,underline,italic
"hi Dangerous ctermfg=red ctermbg=white cterm=bold,underline,italic start=<esc>[31;47;1;5m stop=<esc>[0m
"hi Type ctermfg=lightgreen "hi Type ctermfg=lightgreen
hi CommentSpecial ctermfg=Magenta guifg=Magenta
hi SpecialComment ctermfg=Magenta guifg=Magenta hi CommentSpecial ctermfg=Magenta guifg=Magenta term=none start=<esc>[35m stop=<esc>[0m
hi SpecialComment ctermfg=Magenta guifg=Magenta term=none start=<esc>[35m stop=<esc>[0m
" Seems to doc "@" in comments " Seems to doc "@" in comments
hi doxygenSpecial ctermfg=Magenta guifg=Magenta hi doxygenSpecial ctermfg=Magenta guifg=Magenta term=none start=<esc>[35m stop=<esc>[0m
hi doxygenCommentSpecial ctermfg=Magenta guifg=Magenta hi doxygenCommentSpecial ctermfg=Magenta guifg=Magenta term=none start=<esc>[35m stop=<esc>[0m
hi doxygenBriefSpecial ctermfg=Magenta guifg=Magenta hi doxygenBriefSpecial ctermfg=Magenta guifg=Magenta term=none start=<esc>[35m stop=<esc>[0m
" Brief text " Brief text
hi doxygenBrief ctermfg=cyan cterm=bold,underline hi doxygenBrief ctermfg=cyan cterm=bold,underline term=none start=<esc>[36;1;4m stop=<esc>[0m
hi doxygenComment ctermfg=Blue guifg=Blue hi doxygenComment ctermfg=Blue guifg=Blue term=none start=<esc>[94m stop=<esc>[0m
"hi doxygenSpecialTypeOnelineDesc cterm=bold ctermfg=LightMagenta guifg=firebrick3 gui=bold "hi doxygenSpecialTypeOnelineDesc cterm=bold ctermfg=LightMagenta guifg=firebrick3 gui=bold
hi doxygenParam ctermfg=Magenta cterm=bold hi doxygenParam ctermfg=Magenta cterm=bold term=none start=<esc>[95m stop=<esc>[0m
hi doxygenParamName ctermfg=darkblue cterm=bold,underline hi doxygenParamName ctermfg=darkblue cterm=bold,underline term=none start=<esc>[34;1;4m stop=<esc>[0m
"@note, @return, etc TODO: split these out, probably by forking doxygen.vim "@note, @return, etc TODO: split these out, probably by forking doxygen.vim
hi doxygenOther ctermfg=darkyellow cterm=underline hi doxygenOther ctermfg=darkyellow cterm=underline term=none start=<esc>[33;4m stop=<esc>[0m
"non-brief body "non-brief body
hi doxygenBody ctermfg=lightcyan hi doxygenBody ctermfg=lightcyan term=none start=<esc>[96m stop=<esc>[0m
hi doxygenSpecialMultilineDesc ctermfg=cyan hi doxygenSpecialMultilineDesc ctermfg=cyan term=none start=<esc>[36m stop=<esc>[0m
hi NamedConstant ctermfg=blue hi NamedConstant ctermfg=blue term=none start=<esc>[94m stop=<esc>[0m
"hi Example ctermfg=white "hi Example ctermfg=white
"hi DocNotes ctermfg=yellow "hi DocNotes ctermfg=yellow
@ -147,15 +154,18 @@ hi NamedConstant ctermfg=blue
" This is from vimrc.colors -- I may reintegrate it back together. " This is from vimrc.colors -- I may reintegrate it back together.
"hi User0 ctermfg=green ctermbg=green term=bold "hi User0 ctermfg=green ctermbg=green term=bold
hi statusline ctermfg=white ctermbg=black hi statusline ctermfg=white ctermbg=black term=none start=<esc>[107;30m stop=<esc>[0m
hi User1 ctermfg=red ctermbg=white term=standout hi User1 ctermfg=red ctermbg=white term=standout term=none start=<esc>[91;107m stop=<esc>[0m
hi User2 ctermfg=darkmagenta ctermbg=white term=standout hi User2 ctermfg=darkmagenta ctermbg=white term=standout term=none start=<esc>[35;107m stop=<esc>[0m
hi User3 ctermfg=blue ctermbg=white term=standout hi User3 ctermfg=blue ctermbg=white term=standout term=none start=<esc>[34;107m stop=<esc>[0m
hi User4 ctermfg=cyan ctermbg=white term=standout hi User4 ctermfg=cyan ctermbg=white term=standout term=none start=<esc>[36;107m stop=<esc>[0m
hi User5 ctermfg=brown ctermbg=white term=standout hi User5 ctermfg=brown ctermbg=white term=standout term=none start=<esc>[33;107m stop=<esc>[0m
hi User6 ctermfg=darkgreen ctermbg=white term=standout hi User6 ctermfg=darkgreen ctermbg=white term=standout term=none start=<esc>[32;107m stop=<esc>[0m
hi User8 ctermfg=magenta ctermbg=black term=bold hi User8 ctermfg=magenta ctermbg=black term=bold term=none start=<esc>[95;40m stop=<esc>[0m
hi User9 ctermfg=white ctermbg=black term=bold hi User9 ctermfg=white ctermbg=black term=bold term=none start=<esc>[97;40m stop=<esc>[0m
hi NonText ctermfg=blue term=none start=<esc>[94m stop=<esc>[0m
hi EndOfBuffer ctermfg=blue term=none start=<esc>[94m stop=<esc>[0m
" The vim colorscheme does everything, and some of the non-status-bar colors affect non-source bits. " The vim colorscheme does everything, and some of the non-status-bar colors affect non-source bits.
" I may have to maintain everything in this combined form " I may have to maintain everything in this combined form

View File

@ -23,3 +23,5 @@ source ~/.vim/vimrc.functions
source ~/.vim/vimrc.fileprefs source ~/.vim/vimrc.fileprefs
source ~/.vim/vimrc.statusline source ~/.vim/vimrc.statusline
set shell=/bin/tcsh
set t_Co=1

View File

@ -10,12 +10,12 @@
" hi User9 ctermfg=white ctermbg=black cterm=bold " hi User9 ctermfg=white ctermbg=black cterm=bold
"hi User0 ctermfg=green ctermbg=green term=bold "hi User0 ctermfg=green ctermbg=green term=bold
hi statusline ctermfg=lightgrey ctermbg=black "hi statusline ctermfg=lightgrey ctermbg=black
hi User1 ctermfg=red ctermbg=white term=standout "hi User1 ctermfg=red ctermbg=white term=standout
hi User2 ctermfg=darkmagenta ctermbg=white term=standout "hi User2 ctermfg=darkmagenta ctermbg=white term=standout
hi User3 ctermfg=blue ctermbg=white term=standout "hi User3 ctermfg=blue ctermbg=white term=standout
hi User4 ctermfg=cyan ctermbg=white term=standout "hi User4 ctermfg=cyan ctermbg=white term=standout
hi User5 ctermfg=brown ctermbg=white term=standout "hi User5 ctermfg=brown ctermbg=white term=standout
hi User6 ctermfg=darkgreen ctermbg=white term=standout "hi User6 ctermfg=darkgreen ctermbg=white term=standout
hi User8 ctermfg=magenta ctermbg=black term=bold "hi User8 ctermfg=magenta ctermbg=black term=bold
hi User9 ctermfg=white ctermbg=black term=bold "hi User9 ctermfg=white ctermbg=black term=bold

View File

@ -16,6 +16,9 @@ au BufNewFile,BufRead *.cpp,*.hpp,*.cc,*.h set tw=150
au BufNewFile,BufRead */cshenv/tcshrc.* set filetype=tcsh au BufNewFile,BufRead */cshenv/tcshrc.* set filetype=tcsh
au BufNewFile,BufRead */src/bp/*.cpp,*/src/bp/*.hpp syn region cxxBoostLibrary matchgroup=cxxLibPrefix start="\<\(bp_boost\)\z(::\)\@=" matchgroup=NONE skip="\z1" end="\>" transparent
au BufNewFile,BufRead */src/bp/*.cpp,*/src/bp/*.hpp syn region cxxBoostVerbotenLibrary matchgroup=cxxStlDangerousFunction start="\<\(boost\)\z(::\)\@=" matchgroup=NONE skip="\z1" end="\>" transparent
" falcish " falcish
"au BufNewFile,BufRead *.cpp,*.hpp,*.cc,*.h set ts=3 "au BufNewFile,BufRead *.cpp,*.hpp,*.cc,*.h set ts=3
"au BufNewFile,BufRead *.cpp,*.hpp,*.cc,*.h set sts=3 "au BufNewFile,BufRead *.cpp,*.hpp,*.cc,*.h set sts=3

View File

@ -17,6 +17,12 @@ function! MyFoldText()
endfunction endfunction
function! SyntaxItem() function! SyntaxItem()
return synIDattr(synID(line("."),col("."),1),"name") "return synIDattr(synID(line("."),col("."),1),"name")
let res = []
for id in synstack(line("."), col("."))
let res = res + [ synIDattr( id, "name" ) ]
endfor
"return synIDattr(synID(line("."),col("."),1),"name")
return join( res, ":" )
endfunction endfunction