From f0c64e25d771790060b39fabf9c146d51ee335a8 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Wed, 24 Feb 2021 23:27:10 -0500 Subject: [PATCH 01/13] Update the syntax identifier. I made it now show nested syntax groups in the status line. This will facilitate easier debugging of complex syntax files. --- vim/vimrc.functions | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vim/vimrc.functions b/vim/vimrc.functions index a9cc43d..1adaaea 100644 --- a/vim/vimrc.functions +++ b/vim/vimrc.functions @@ -17,6 +17,12 @@ function! MyFoldText() endfunction 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 From 33ef042adb26f9f958eb052636be1d43c9e9a56b Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Wed, 24 Feb 2021 23:28:18 -0500 Subject: [PATCH 02/13] Demand my shell from vim. Not every system has me logging in as a TCSH user. Specifically, qubes guests seem to have trouble with non bourne shells as the login shell. For those I use the "start command" feature of the terminal, but I need to trick VIM into making the shell be TCSH. --- vim/vimrc | 1 + 1 file changed, 1 insertion(+) diff --git a/vim/vimrc b/vim/vimrc index e51ff67..8db06a8 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -23,3 +23,4 @@ source ~/.vim/vimrc.functions source ~/.vim/vimrc.fileprefs source ~/.vim/vimrc.statusline +set shell=/bin/tcsh From 438257749f1ba8464b34de3150cf80a2663c99e4 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Wed, 24 Feb 2021 23:44:29 -0500 Subject: [PATCH 03/13] Complete rewrite of C++ syntax additions. Now it's region based and uses keywords mode. Hopefully this is faster. It also enables support for multiple libraries with partially overlapping symbol sets. (E.g.: Boost and STL.) --- vim/after/syntax/cpp.vim | 129 +++++++++++++++++++++++---------------- vim/vimrc.fileprefs | 3 + 2 files changed, 79 insertions(+), 53 deletions(-) diff --git a/vim/after/syntax/cpp.vim b/vim/after/syntax/cpp.vim index 038537b..e32b73b 100644 --- a/vim/after/syntax/cpp.vim +++ b/vim/after/syntax/cpp.vim @@ -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 cxxStlPrefix "\" -syn match cxxStlTypes "\(\" -syn match cxxStlTypes "\(\" -syn match cxxStlConstant "\(std::\)\@<=\(endl\|flush\)\>" +syn keyword cxxStlKeywords containedin=cxxStlLibrary,cxxBoostLibrary string_view mutex thread contained +syn keyword cxxStlKeywords containedin=cxxStlLibrary string contained -syn match cxxStlKeywords "\(\" -syn match cxxStlKeywords "\(\" -" syn match cxxStlTypes "\(std::\)\@<=\(vector\|array\|deque\|list\|pair\|\(priority_\)\?queue\|stack\|\(unordered_\)\?\(multi\)\?\(set\|map\)\)\(<\|;\| \)\@=" -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 keyword cxxStlKeywords containedin=cxxStlLibrary,cxxBoostLibrary shared_ptr weak_ptr contained +syn keyword cxxStlKeywords containedin=cxxStlLibrary unique_ptr nullptr_t contained +syn keyword cxxStlKeywords containedin=cxxStlLibrary,cxxBoostLibrary function contained -syn match cxxStlFunctions "\(std::\)\@<=make_\(unique\|shared\)\(<\)\@=" -syn match cxxStlFunctions "\(std::\)\@<=make_\(pair\|tuple\)\((\|<\)\@=" +syn keyword cxxStlTypes containedin=cxxStlLibrary iostream istream ostream fstream ifstream ofstream contained +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 match cxxStlFunctions "\(std::\)\@<=tie\((\)\@=" -syn match cxxStlFunctions "\(std::\)\@<=copy\(_\(n\|backward\|if\)\)\?\((\)\@=" -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 keyword cxxStlTypes containedin=cxxStlLibrary,cxxBoostLibrary array contained +syn keyword cxxStlTypes containedin=cxxStlLibrary,cxxBoostLibrary unordered_map unordered_multimap contained +syn keyword cxxStlTypes containedin=cxxStlLibrary,cxxBoostLibrary unordered_set unordered_multiset contained -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 match cxxStlExceptionNames "\(std::\)\@<=runtime_error\>" -syn match cxxStlExceptionNames "\(std::\)\@<=logic_error\>" -syn match cxxStlExceptionNames "\(std::\)\@<=bad_typeid\>" -syn match cxxStlExceptionNames "\(std::\)\@<=bad_cast\>" -syn match cxxStlExceptionNames "\(std::\)\@<=bad_alloc\>" -syn match cxxStlExceptionNames "\(std::\)\@<=bad_array_new_length\>" -syn match cxxStlExceptionNames "\(std::\)\@<=bad_exception\>" -syn match cxxStlExceptionNames "\(std::\)\@<=invalid_argument\>" -syn match cxxStlExceptionNames "\(std::\)\@<=domain_error\>" -syn match cxxStlExceptionNames "\(std::\)\@<=out_of_range\>" -syn match cxxStlExceptionNames "\(std::\)\@<=range_error\>" -syn match cxxStlExceptionNames "\(std::\)\@<=\(overflow\|underflow\)_error\>" +syn keyword cxxStlFunctions containedin=cxxStlLibrary,cxxBoostLibrary make_shared make_tuple contained +syn keyword cxxStlFunctions containedin=cxxStlLibrary make_unique make_pair tie addressof contained +syn keyword cxxStlFunctions containedin=cxxStlLibrary copy copy_n copy_if copy_backward replace_copy_if replace_copy contained +syn keyword cxxStlFunctions containedin=cxxStlLibrary find find_if find_first_of find_end contained +syn keyword cxxStlFunctions containedin=cxxStlLibrary count count_if search search_n contained +syn keyword cxxStlFunctions containedin=cxxStlLibrary transform mismatch equal accumulate move contained +syn keyword cxxStlFunctions containedin=cxxStlLibrary generate generate_n fill fill_n contained +syn keyword cxxStlFunctions containedin=cxxStlLibrary unique reverse rotate contained +syn keyword cxxStlFunctions containedin=cxxStlLibrary unique_copy reverse_copy rotate_copy contained +syn keyword cxxStlFunctions containedin=cxxStlLibrary sort stable_sort partition stable_partition contained +syn keyword cxxStlFunctions containedin=cxxStlLibrary partial_sort partial_sort_copy contained +syn keyword cxxStlFunctions containedin=cxxStlLibrary merge inplace_merge contained +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()" @@ -99,6 +116,9 @@ if version >= 508 || !exists("did_cxx_syntax_inits") command -nargs=+ HiLink hi def link endif + "HiLink cxxStlLibrary cxxLibPrefix + "HiLink cxxBoostLibrary cxxLibPrefix + HiLink cxxObjects Object HiLink cxxCast cxxStatement @@ -116,7 +136,10 @@ if version >= 508 || !exists("did_cxx_syntax_inits") HiLink cxxStlTypes Object HiLink cxxStlKeywords cppType HiLink cxxStlFunctions cppStatement - HiLink cxxStlPrefix Caller + HiLink cxxStlFreeFunctions cppStatement + + HiLink cxxLibPrefix Caller + HiLink cxxStlTraits MetaFunction HiLink cxxMetaFunction MetaFunction diff --git a/vim/vimrc.fileprefs b/vim/vimrc.fileprefs index 19072d4..76968fd 100644 --- a/vim/vimrc.fileprefs +++ b/vim/vimrc.fileprefs @@ -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 */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 "au BufNewFile,BufRead *.cpp,*.hpp,*.cc,*.h set ts=3 "au BufNewFile,BufRead *.cpp,*.hpp,*.cc,*.h set sts=3 From 8e55a08d67110461c8ca274b6e8864f27c2464e1 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Wed, 24 Feb 2021 23:46:15 -0500 Subject: [PATCH 04/13] Remove the user colours for status line from base. This should be in the colour def, not the base syntax. This facilitates a proper `colorscheme`. --- vim/vimrc.colors | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/vim/vimrc.colors b/vim/vimrc.colors index 0e42093..4cae3d1 100644 --- a/vim/vimrc.colors +++ b/vim/vimrc.colors @@ -10,12 +10,12 @@ " hi User9 ctermfg=white ctermbg=black cterm=bold "hi User0 ctermfg=green ctermbg=green term=bold -hi statusline ctermfg=lightgrey ctermbg=black -hi User1 ctermfg=red ctermbg=white term=standout -hi User2 ctermfg=darkmagenta ctermbg=white term=standout -hi User3 ctermfg=blue ctermbg=white term=standout -hi User4 ctermfg=cyan ctermbg=white term=standout -hi User5 ctermfg=brown ctermbg=white term=standout -hi User6 ctermfg=darkgreen ctermbg=white term=standout -hi User8 ctermfg=magenta ctermbg=black term=bold -hi User9 ctermfg=white ctermbg=black term=bold +"hi statusline ctermfg=lightgrey ctermbg=black +"hi User1 ctermfg=red ctermbg=white term=standout +"hi User2 ctermfg=darkmagenta ctermbg=white term=standout +"hi User3 ctermfg=blue ctermbg=white term=standout +"hi User4 ctermfg=cyan ctermbg=white term=standout +"hi User5 ctermfg=brown ctermbg=white term=standout +"hi User6 ctermfg=darkgreen ctermbg=white term=standout +"hi User8 ctermfg=magenta ctermbg=black term=bold +"hi User9 ctermfg=white ctermbg=black term=bold From d6419881ec8491b24e452a181649aa24dc7f22e8 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Wed, 24 Feb 2021 23:56:13 -0500 Subject: [PATCH 05/13] Added raw terminal code support. Because I *REALLY* wanted the colours to blink for some constructs, I've added 1-colour terminal support with raw ANSI escape codes. These codes match the colours I named, as best I could. The 1-colour mode permits the ^[[5m or ^[[6m blinking codes to be emitted raw. (The `start` and `stop` sequences only are valid in the 1-colour mode.) Thus I've recreated all the colour state I cared about. I don't expect too many problems, as weird terminals are rare these days. --- vim/colors/adam.vim | 112 ++++++++++++++++++++++++-------------------- vim/vimrc | 1 + 2 files changed, 62 insertions(+), 51 deletions(-) diff --git a/vim/colors/adam.vim b/vim/colors/adam.vim index 98b4bca..ae34993 100644 --- a/vim/colors/adam.vim +++ b/vim/colors/adam.vim @@ -23,21 +23,26 @@ let g:colors_name="adam" " Last Change: 2013 May 24 set background=dark -hi Normal ctermfg=lightgrey +hi Normal ctermfg=lightgrey start=[0m stop=[0m "hi NonText ctermfg=yellow ctermbg=grey -hi comment ctermfg=green -hi constant ctermfg=magenta cterm=bold +"hi comment ctermfg=green +hi constant ctermfg=magenta term=none start=[95m stop=[0m +"hi constant ctermfg=magenta cterm=bold "hi identifier ctermfg=cyan cterm=NONE -hi statement ctermfg=yellow cterm=NONE -hi preproc ctermfg=blue -hi type ctermfg=green cterm=bold +hi statement ctermfg=yellow cterm=NONE term=none start=[93m stop=[0m +hi preproc ctermfg=blue term=none start=[94m stop=[0m +hi type ctermfg=green term=none start=[92m stop=[0m +"hi type ctermfg=green cterm=bold "hi special ctermfg=yellow -hi ErrorMsg ctermfg=White ctermbg=Red +hi Special ctermfg=Blue guifg=Blue term=none start=[94m stop=[0m +hi ErrorMsg ctermfg=White ctermbg=Red term=none start=[97;101m stop=[0m hi WarningMsg ctermfg=Black ctermbg=Green -hi Error ctermbg=Red -hi Todo ctermfg=Black ctermbg=yellow -hi Cursor ctermfg=blue -hi Directory ctermfg=Blue +"hi Error ctermbg=Red +" Highlight for TODO XXX FIXME, etc. +hi Todo ctermfg=Black ctermbg=yellow term=none start=[103;90m stop=[0m + +hi Cursor ctermfg=blue term=none start=[94m stop=[0m +hi Directory ctermfg=Blue term=none start=[94m stop=[0m " Directory thru netrw @@ -58,21 +63,21 @@ hi ShowMarksHL ctermbg=yellow ctermfg=black cterm=bold hi CursorLine ctermbg=yellow ctermfg=black cterm=bold "hi StatusLineNC cterm=NONE ctermfg=lightblue ctermbg=darkblue "hi StatusLine cterm=bold ctermfg=cyan ctermbg=blue -hi label ctermfg=yellow -hi operator ctermfg=yellow +hi label ctermfg=yellow term=none start=[93m stop=[0m +hi operator ctermfg=yellow term=none start=[93m stop=[0m hi clear Visual hi Visual cterm=reverse term=reverse -hi DiffChange ctermfg=darkgreen -hi DiffFile ctermfg=green -hi DiffSubname ctermfg=cyan -hi DiffIndexLine ctermfg=cyan -hi diffAdded ctermfg=blue -hi diffRemoved ctermfg=red -hi DiffLine ctermfg=yellow +hi DiffChange ctermfg=darkgreen term=none start=[32m stop=[0m +hi DiffFile ctermfg=green term=none start=[92m stop=[0m +hi DiffSubname ctermfg=cyan term=none start=[96m stop=[0m +hi DiffIndexLine ctermfg=cyan term=none start=[96m stop=[0m +hi diffAdded ctermfg=blue term=none start=[94m stop=[0m +hi diffRemoved ctermfg=red term=none start=[91m stop=[0m +hi DiffLine ctermfg=yellow term=none start=[93m stop=[0m "hi DiffLine ctermfg=magenta hi Folded ctermbg=darkgrey hi FoldColumn ctermbg=darkgrey ctermfg=white -hi cIf0 ctermfg=gray +hi cIf0 ctermfg=gray term=none start=[38;2;100;100;100m stop=[0m "hi diffOnly ctermfg=red cterm=bold " End of ron above. @@ -82,53 +87,55 @@ hi cIf0 ctermfg=gray "hi StatusUnwrap ctermfg=brown ctermbg=none cterm=none "hi StatusUnwrap ctermfg=236 ctermbg=none cterm=none hi StatusUnwrap ctermfg=58 ctermbg=none cterm=none -hi Comment ctermfg=darkgrey cterm=bold -hi Identifier ctermfg=cyan -hi Object ctermfg=red -hi Exception ctermfg=brown -hi Service ctermfg=green -hi Error ctermbg=red ctermfg=white cterm=bold -hi Caller ctermfg=cyan +hi Comment ctermfg=darkgrey cterm=none term=NONE term=none start=[38;5;242m stop=[0m +hi Identifier ctermfg=cyan cterm=none term=none start=[96m stop=[0m +hi Object ctermfg=red term=none start=[91m stop=[0m +hi Exception ctermfg=brown term=none start=[38;5;130m stop=[0m +hi Service ctermfg=green start=[32m stop=[0m +hi Error ctermbg=red ctermfg=white cterm=none term=none start=[101;97m stop=[0m +hi Caller ctermfg=cyan term=NONE start=[96m stop=[0m hi Target ctermfg=green ctermbg=red hi Sync ctermfg=green ctermbg=red hi Debug ctermfg=darkgreen hi MetaFunction ctermfg=darkcyan -hi Dangerous ctermfg=red ctermbg=white cterm=bold,underline,italic +hi Dangerous term=none start=[1;7;97;101;3;4;6m stop=[0m ctermfg=white ctermbg=red cterm=reverse,bold,underline,italic +"hi Dangerous ctermfg=red ctermbg=white cterm=bold,underline,italic start=[31;47;1;5m stop=[0m "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=[35m stop=[0m +hi SpecialComment ctermfg=Magenta guifg=Magenta term=none start=[35m stop=[0m " Seems to doc "@" in comments -hi doxygenSpecial ctermfg=Magenta guifg=Magenta +hi doxygenSpecial ctermfg=Magenta guifg=Magenta term=none start=[35m stop=[0m -hi doxygenCommentSpecial ctermfg=Magenta guifg=Magenta -hi doxygenBriefSpecial ctermfg=Magenta guifg=Magenta +hi doxygenCommentSpecial ctermfg=Magenta guifg=Magenta term=none start=[35m stop=[0m +hi doxygenBriefSpecial ctermfg=Magenta guifg=Magenta term=none start=[35m stop=[0m " Brief text -hi doxygenBrief ctermfg=cyan cterm=bold,underline +hi doxygenBrief ctermfg=cyan cterm=bold,underline term=none start=[36;1;4m stop=[0m -hi doxygenComment ctermfg=Blue guifg=Blue +hi doxygenComment ctermfg=Blue guifg=Blue term=none start=[94m stop=[0m "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=[95m stop=[0m -hi doxygenParamName ctermfg=darkblue cterm=bold,underline +hi doxygenParamName ctermfg=darkblue cterm=bold,underline term=none start=[34;1;4m stop=[0m "@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=[33;4m stop=[0m "non-brief body -hi doxygenBody ctermfg=lightcyan +hi doxygenBody ctermfg=lightcyan term=none start=[96m stop=[0m -hi doxygenSpecialMultilineDesc ctermfg=cyan +hi doxygenSpecialMultilineDesc ctermfg=cyan term=none start=[36m stop=[0m -hi NamedConstant ctermfg=blue +hi NamedConstant ctermfg=blue term=none start=[94m stop=[0m "hi Example ctermfg=white "hi DocNotes ctermfg=yellow @@ -147,15 +154,18 @@ hi NamedConstant ctermfg=blue " This is from vimrc.colors -- I may reintegrate it back together. "hi User0 ctermfg=green ctermbg=green term=bold -hi statusline ctermfg=white ctermbg=black -hi User1 ctermfg=red ctermbg=white term=standout -hi User2 ctermfg=darkmagenta ctermbg=white term=standout -hi User3 ctermfg=blue ctermbg=white term=standout -hi User4 ctermfg=cyan ctermbg=white term=standout -hi User5 ctermfg=brown ctermbg=white term=standout -hi User6 ctermfg=darkgreen ctermbg=white term=standout -hi User8 ctermfg=magenta ctermbg=black term=bold -hi User9 ctermfg=white ctermbg=black term=bold +hi statusline ctermfg=white ctermbg=black term=none start=[107;30m stop=[0m +hi User1 ctermfg=red ctermbg=white term=standout term=none start=[91;107m stop=[0m +hi User2 ctermfg=darkmagenta ctermbg=white term=standout term=none start=[35;107m stop=[0m +hi User3 ctermfg=blue ctermbg=white term=standout term=none start=[34;107m stop=[0m +hi User4 ctermfg=cyan ctermbg=white term=standout term=none start=[36;107m stop=[0m +hi User5 ctermfg=brown ctermbg=white term=standout term=none start=[33;107m stop=[0m +hi User6 ctermfg=darkgreen ctermbg=white term=standout term=none start=[32;107m stop=[0m +hi User8 ctermfg=magenta ctermbg=black term=bold term=none start=[95;40m stop=[0m +hi User9 ctermfg=white ctermbg=black term=bold term=none start=[97;40m stop=[0m + +hi NonText ctermfg=blue term=none start=[94m stop=[0m +hi EndOfBuffer ctermfg=blue term=none start=[94m stop=[0m " 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 diff --git a/vim/vimrc b/vim/vimrc index 8db06a8..12b0d5e 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -24,3 +24,4 @@ source ~/.vim/vimrc.fileprefs source ~/.vim/vimrc.statusline set shell=/bin/tcsh +set t_Co=1 From 78ddd212028dd341b35fceeb226e32fc54f24e83 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Sat, 27 Feb 2021 18:14:42 -0500 Subject: [PATCH 06/13] Fix formatting issues. --- adamformat/adam.format.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adamformat/adam.format.cfg b/adamformat/adam.format.cfg index e3620ac..b8ccbfb 100644 --- a/adamformat/adam.format.cfg +++ b/adamformat/adam.format.cfg @@ -36,7 +36,7 @@ sp_balance_nested_parens=true align_keep_tabs=false align_with_tabs=false align_on_tabstop=false -align_number_left=false +#align_number_left=false align_func_params=false align_same_func_call_params=false align_var_def_colon=false From deefb398cc9cf80dffe1fd32275cbea94daf5481 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Sat, 27 Feb 2021 18:18:46 -0500 Subject: [PATCH 07/13] Fix title text colour. --- vim/colors/adam.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vim/colors/adam.vim b/vim/colors/adam.vim index ae34993..dadd64f 100644 --- a/vim/colors/adam.vim +++ b/vim/colors/adam.vim @@ -58,7 +58,7 @@ hi netrwSymLink ctermfg=Cyan hi Search ctermbg=brown ctermfg=white cterm=bold "hi IncSearch cterm=NONE ctermbg=steelblue hi LineNr ctermfg=yellow -hi title ctermbg=yellow ctermfg=white +hi title ctermbg=yellow ctermfg=darkgreen term=none start=[103;32m stop=[0m hi ShowMarksHL ctermbg=yellow ctermfg=black cterm=bold hi CursorLine ctermbg=yellow ctermfg=black cterm=bold "hi StatusLineNC cterm=NONE ctermfg=lightblue ctermbg=darkblue From 2cfaa4d64a6f40526497a2a618748ffe82118533 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Tue, 2 Mar 2021 06:27:19 -0500 Subject: [PATCH 08/13] Updated the prompt code. I removed the need for the ~/.tcsh_cache directory. The right-side alignment is handled with terminal control codes. I stick exclusively to ANSI/VT-100 control codes. Everything should support that by now, it's 2021! --- tcshrc.prompt.defs | 97 ++++------------------------------------------ 1 file changed, 7 insertions(+), 90 deletions(-) diff --git a/tcshrc.prompt.defs b/tcshrc.prompt.defs index 890dad7..9656130 100644 --- a/tcshrc.prompt.defs +++ b/tcshrc.prompt.defs @@ -6,11 +6,6 @@ if( $?CSHENV_DEBUG ) then echo "Sourcing prompt setup and definitions..." endif - -if( $?CSHENV_DEBUG ) then - echo "Trying to fix tty bug" -endif - if( ! $?unknown_tty ) then set unknown_tty="?" if( $?CSHENV_DEBUG ) then @@ -18,97 +13,19 @@ if( ! $?unknown_tty ) then endif endif -setenv CSHENV_CACHE_DIR ~/.tcsh_cache set promptchars='%#' -set default_screen_offset_count=80 - set prompt_simple="${oldp_color_seq}[%n@%m: %c]%# " - -switch( $CSHENV_SYSTEM ) - - # All BSD derived systems (and actually most non-GNU tools) have the 6th entry for stty being columns - case Darwin: - #FALLTHROUGH - - # TODO: Figure out a collapse? - #case *BSD: #Is this legal in CSH? - #FALLTHROUGH - - case FreeBSD: - #FALLTHROUGH - - case NetBSD: - #FALLTHROUGH - - case OpenBSD: - if( $?CSHENV_DEBUG ) then - echo "Using BSDish stty for width" - endif - set screen_offset_count=`stty -a | head -1 | awk '{print $6}' | sed -e "s/;//g"` - breaksw - - - # SysV variants: - - # Linux (and Cygwin) are not BSD behavior, and make cols the 7th entry be stty - case Cygwin: - case Linux: - - # SYSV type systems seem to be settling on this as the common mechanism. - case AIX: - case SunOS: - if( $?CSHENV_DEBUG ) then - echo "Linux prompt width for stty blows..." - endif - - #Some cshes don't like the split line here! - set screen_offset_count=`stty -a | head -1 | sed -e 's/;//g' | awk '{print $7}' | sed -e 's/;//g'` - breaksw - - default: - #We don't know how to handle this case. Just use a guessed - #value of 80, since we cannot tell. - set screen_offset_count=$default_screen_offset_count - echo "Using a default screen offset value" - breaksw - -endsw - -if( $?CSHENV_DEBUG ) then - echo "Screen offset computed to be: ${screen_offset_count}" -endif - -set screen_width=$screen_offset_count -#echo $screen_offset_count -@ screen_offset_count = $screen_offset_count - 18 -#echo "A" - -set screen_offset="" -set n="1" - - -if ( ! -d $CSHENV_CACHE_DIR ) then - mkdir $CSHENV_CACHE_DIR -endif -#echo $screen_offset_count -if ( -f ${CSHENV_CACHE_DIR}/screen.$screen_width ) then - source ${CSHENV_CACHE_DIR}/screen.$screen_width -else - while ( ${n} < ${screen_offset_count} ) - set screen_offset="${screen_offset} " - @ n = ($n + 1) - end - echo "set screen_offset='${screen_offset}'" > ${CSHENV_CACHE_DIR}/screen.${screen_width} - #echo "Make a manual cache entry for screen width." -endif - - -set date_prompt_core="${date_color_seq}%Y-%W-%D ${time_color_seq}%P" +# Screens are almost certainly not a million chars wide. +# If they are... oh well, that's a really weird one. +set date_prefix="%{${csi}A${csi}1000000G${csi}18D%}" +set date_suffix="%{${csi}G${csi}1B%}" +#set screen_return="%{8%}" +set date_prompt_core="${date_color_seq}%{%Y-%W-%D %}${time_color_seq}%{%P%}" set date_prompt_left="${date_prompt_core}" -set date_prompt="${screen_offset}${date_prompt_core}" +set date_prompt="${date_prefix}${date_prompt_core}${date_suffix}" #unset edit if( $?CSHENV_DEBUG ) then From 62215d5df80fb29549beaa516fb43503ee93e53d Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Tue, 2 Mar 2021 06:34:41 -0500 Subject: [PATCH 09/13] I added more colour support. These could be used in various situations. --- tcshrc.colors | 2 ++ tcshrc.prompt.colors | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tcshrc.colors b/tcshrc.colors index eb2d935..d8b74ff 100644 --- a/tcshrc.colors +++ b/tcshrc.colors @@ -7,6 +7,7 @@ set csi='[' set ansi_bright='1' set ansi_dim='0' set ansi_color='m' +set ansi_reverse='7' set ansi_black='30' set ansi_red='31' @@ -20,6 +21,7 @@ set ansi_white='37' set bright="$csi$ansi_bright$ansi_color" set dim="$csi$ansi_dim$ansi_color" +set reverse="$csi$ansi_reverse$ansi_color" set black="$csi$ansi_black$ansi_color" diff --git a/tcshrc.prompt.colors b/tcshrc.prompt.colors index faa6bb9..0ab6958 100644 --- a/tcshrc.prompt.colors +++ b/tcshrc.prompt.colors @@ -6,7 +6,7 @@ set date_color="${dim_magenta}" set time_color="${bright_magenta}" set text_color="${bright_white}" -set oldp_color="${dim_white}" +set oldp_color="${dim}" set brace_color="${bright_yellow}" set host_color="${bright_blue}" set name_color="${bright_cyan}" @@ -15,7 +15,7 @@ set path_color="${bright_green}" set line_color="${dim_red}" set prompt_color="${dim_white}" set depth_color="${dim_yellow}" -set command_color="${dim_white}" +set command_color="${dim}" set color_start="%{" set color_end="%}" From 3f608c9ad174eb916d4eb9f56eca7bfdb7559ea0 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Tue, 2 Mar 2021 06:35:35 -0500 Subject: [PATCH 10/13] Add the menu colours to vim. --- vim/colors/adam.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/vim/colors/adam.vim b/vim/colors/adam.vim index dadd64f..02a20d9 100644 --- a/vim/colors/adam.vim +++ b/vim/colors/adam.vim @@ -166,6 +166,7 @@ hi User9 ctermfg=white ctermbg=black term=bold term=none start=[94m stop=[0m hi EndOfBuffer ctermfg=blue term=none start=[94m stop=[0m +hi WildMenu ctermfg=0 ctermbg=11 guifg=Black guibg=Yellow term=none start=[48;5;11;30m stop=[0m " 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 From 41fb29eef09054cf209ab12659c39062d2f8cde8 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Tue, 2 Mar 2021 06:45:49 -0500 Subject: [PATCH 11/13] Add prompt reference symbols. This one is a bit shaky still, but I now have symbolic, colour-coded tags in the prompt. This can be used to point out interesting lines in pair programming. --- tcshrc.prompt.defs | 79 ++++++++++++++++++++++++++++++++++++++++----- tcshrc.prompt.final | 51 +++++++++++++++++++++++++++++ 2 files changed, 122 insertions(+), 8 deletions(-) create mode 100644 tcshrc.prompt.final diff --git a/tcshrc.prompt.defs b/tcshrc.prompt.defs index 9656130..b5748fb 100644 --- a/tcshrc.prompt.defs +++ b/tcshrc.prompt.defs @@ -14,6 +14,74 @@ if( ! $?unknown_tty ) then endif +# R G Y B C M +set reference_colors=( ${csi}91m ${csi}92m ${csi}93m ${csi}38\;5\;33m ${csi}95m ${csi}96m ) + +# R G Y B M +set reference_colors=( ${csi}91m ${csi}92m ${csi}93m ${csi}38\;5\;33m ${csi}96m ) + +# Select a set of Unicode codepoints for prompt referencing... +set referencechars_raw="" + +# Nuke Symbol +set referencechars_raw="${referencechars_raw} 2622" + +# Keyboard Symbol (Didn't look good -- spilled (not pushed) over 1.5 cells) +set keyboard_sym="2328" +set referencechars_raw="${referencechars_raw} 2328" + +# Telephone (Spills over 1 cell.) +set referencechars_raw="${referencechars_raw} 260e" + +# Clover +set referencechars_raw="${referencechars_raw} 2618" + +# Music notes +#set referencechars_raw="${referencechars_raw} 2669 266a 266b 266c" + +# One Single music note, +#set referencechars_raw="${referencechars_raw} 266a" +# One double music note +#set referencechars_raw="${referencechars_raw} 266b" +set referencechars_raw="${referencechars_raw} 266c" + +# Dice +#set referencechars_raw="${referencechars_raw} 2680 2681 2682 2683 2684 2685" + +# Card suits +set referencechars_raw="${referencechars_raw} 2660 2663 2665 2666" + +# Inner planet symbols (Mercury, Venus, Earth, Mars) +set referencechars_raw="${referencechars_raw} 263f 2640 2641 2642" + +# Outer Planet symbols (Jupiter, Saturn, Uranus, Neptune, Pluto) +#set referencechars_raw="${referencechars_raw} 2643 2644 2645 2646 2647" + +# Hollow Chess pieces +#set referencechars_raw="${referencechars_raw} 2654 2655 2656 2657 2658 2659" + +# Filled Chess pieces +#set referencechars_raw="${referencechars_raw} 265a 265b 265c 265d 265e 265f" + +# Roman Numerals +#set referencechars_raw="${referencechars_raw} 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 216a 216b" + +# Misc stuff -- colour? baseball Takes up too many width slots. Throws off alignment. +#set referencechars_raw="${referencechars_raw} 26be" + +#echo ${referencechars[1]} +set prompt_hcolor=0 +set prompt_hsym=0 + +set referencechars=() +foreach ch ($referencechars_raw) + set referencechars=( $referencechars `env LC_ALL=C.UTF-8 printf "\u${ch}"` ) +end + +# Rotation +alias precmd 'source ${CSHENV_DIR}/tcshrc.prompt.final' +#alias postcmd echo doit + set promptchars='%#' set prompt_simple="${oldp_color_seq}[%n@%m: %c]%# " @@ -33,10 +101,10 @@ if( $?CSHENV_DEBUG ) then endif -set depth_prompt=" ${depth_color_seq}(${shlvl})" +set depth_prompt=" ${depth_color_seq}(${shlvl})${text_color_seq}\- " if( $?CSHENV_HIDE_SHELL_LEVEL_AT_ONE ) then if( $shlvl == 1 ) then - set depth_prompt="" + set depth_prompt="${text_color_seq}\- " endif endif @@ -47,15 +115,10 @@ set host_prompt="${host_color_seq}${CSHENV_HOSTNAME}" set path_prompt="${path_color_seq}%c02" set end_prompt="${prompt_color_seq}%#${command_color_seq} " - -set prompt_cool="${date_prompt}${text_color_seq}%L${brace_color_seq}\[${line_prompt}${depth_prompt}${text_color_seq}\- ${user_prompt}${at_color_seq}@${host_prompt}${text_color_seq}\: ${path_prompt}${brace_color_seq}\]${end_prompt}" - -if( ! ${?cshenv_user_prompt_override} ) then - set prompt="$prompt_cool" -endif alias oldp 'set prompt="$prompt_simple"; set cshenv_user_prompt_override' alias newp 'set prompt="$prompt_cool"; set cshenv_user_prompt_override' +source ${CSHENV_DIR}/tcshrc.prompt.final ########################### # vim:filetype=tcsh ########################### diff --git a/tcshrc.prompt.final b/tcshrc.prompt.final new file mode 100644 index 0000000..bf70099 --- /dev/null +++ b/tcshrc.prompt.final @@ -0,0 +1,51 @@ +############################ +### Final Prompt Setting ### +############################ +@ prompt_hcolor = $prompt_hcolor % ${#reference_colors} +@ prompt_hsym = $prompt_hsym % ${#referencechars} + +if( ${prompt_hcolor} == 0 ) then + #if( $?CSHENV_DEBUG ) then + #echo colorshuffle + #endif + #echo  + set reference_colors=`shuf -e $reference_colors` +endif + + +if( ${prompt_hsym} == 0 ) then # && ${prompt_hcolor} == 0 ) then + if( $?CSHENV_DEBUG ) then + echo symbolshuffle + endif + #echo  + set referencechars=`shuf -e $referencechars` + #set reference_colors=`shuf -e $reference_colors` +endif + +@ prompt_hcolor = ${prompt_hcolor} + 1 +@ prompt_hsym = ${prompt_hsym} + 1 + +if( $?CSHENV_DEBUG ) then + echo ${prompt_hcolor} ${prompt_hsym} + echo "Setting prompt" +endif + +set prompt_reference_core="%{${reference_colors[${prompt_hcolor}]}%}${referencechars[${prompt_hsym}]}" +#if( ${referencechars[${prompt_hsym}]} == `env LC_ALL=C.UTF-8 printf "\u2328"` ) then +# set prompt_reference="%{${dim}%}<${prompt_reference_core} %{${dim}%}> " +#else +# set prompt_reference="%{${dim}%}< ${prompt_reference_core} %{${dim}%}> " +#endif +set prompt_reference="%{${dim}%}< ${prompt_reference_core} %{${dim}%}> " +#set prompt_reference="%{${csi}0;48\;5\;7m%}(${prompt_reference_core}%{${csi}0;48\;5\;7m%})%{${dim}%}" +#set prompt_reference="${prompt_reference_core}%{${text_color_seq}%} \- " + +set prompt_cool="\n${date_prompt}${brace_color_seq}\[${prompt_reference}${line_prompt}${depth_prompt}${user_prompt}${at_color_seq}@${host_prompt}${text_color_seq}\: ${path_prompt}${brace_color_seq}\]${end_prompt}" + +if( ! ${?cshenv_user_prompt_override} ) then + set prompt="$prompt_cool" +endif + +########################### +# vim:filetype=tcsh +########################### From a7b57e855436e7d50b58915d1156d7f94259eb45 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Tue, 2 Mar 2021 13:58:07 -0500 Subject: [PATCH 12/13] Improve the vim highlighting a bit. --- vim/after/syntax/cpp.vim | 20 ++++++++++++++++---- vim/colors/adam.vim | 18 ++++++++++++++---- vim/vimrc | 2 +- vim/vimrc.functions | 4 ++-- 4 files changed, 33 insertions(+), 11 deletions(-) diff --git a/vim/after/syntax/cpp.vim b/vim/after/syntax/cpp.vim index e32b73b..7b52659 100644 --- a/vim/after/syntax/cpp.vim +++ b/vim/after/syntax/cpp.vim @@ -8,7 +8,7 @@ syn keyword cppType noexcept decltype " I dislike the exception highlighting for these control statements. syn keyword cppStatement try throw catch -syn keyword cppStatement static_assert +"syn keyword cppStatement static_assert syn keyword cxxConstants nullptr @@ -45,8 +45,6 @@ syn region cxxBoostLibrary matchgroup=cxxLibPrefix start="\<\(boost\)\z(::\)\@=" syn keyword cxxStlKeywords containedin=cxxStlLibrary,cxxBoostLibrary string_view mutex thread contained syn keyword cxxStlKeywords containedin=cxxStlLibrary string contained -syn keyword cxxStlKeywords containedin=cxxStlLibrary,cxxBoostLibrary shared_ptr weak_ptr contained -syn keyword cxxStlKeywords containedin=cxxStlLibrary unique_ptr nullptr_t contained syn keyword cxxStlKeywords containedin=cxxStlLibrary,cxxBoostLibrary function contained syn keyword cxxStlTypes containedin=cxxStlLibrary iostream istream ostream fstream ifstream ofstream contained @@ -61,8 +59,15 @@ syn keyword cxxStlTypes containedin=cxxStlLibrary,cxxBoostLibrary unordered_set syn keyword cxxStlService containedin=cxxStlLibrary cout clog cerr contained syn keyword cxxStlConstant containedin=cxxStlLibrary endl flush contained +" Smart pointers syn keyword cxxStlFunctions containedin=cxxStlLibrary,cxxBoostLibrary make_shared make_tuple contained -syn keyword cxxStlFunctions containedin=cxxStlLibrary make_unique make_pair tie addressof contained +syn keyword cxxStlKeywords containedin=cxxBoostLibrary scoped_ptr contained +syn keyword cxxStlKeywords containedin=cxxStlLibrary,cxxBoostLibrary shared_ptr weak_ptr contained +syn keyword cxxStlFunctions containedin=cxxStlLibrary make_unique contained +syn keyword cxxStlKeywords containedin=cxxStlLibrary unique_ptr nullptr_t contained + +" Algorithms +syn keyword cxxStlFunctions containedin=cxxStlLibrary make_pair tie addressof contained syn keyword cxxStlFunctions containedin=cxxStlLibrary copy copy_n copy_if copy_backward replace_copy_if replace_copy contained syn keyword cxxStlFunctions containedin=cxxStlLibrary find find_if find_first_of find_end contained syn keyword cxxStlFunctions containedin=cxxStlLibrary count count_if search search_n contained @@ -81,12 +86,15 @@ syn keyword cxxStlFunctions containedin=cxxStlLibrary min max min_element max_el syn keyword cxxStlFunctions containedin=cxxStlLibrary getline contained +" Metafunctions/Traits syn keyword cxxStlTraits containedin=cxxStlLibrary is_convertible contained syn keyword cxxStlTraits containedin=cxxStlLibrary is_constructible is_default_constructible contained +" Free floating STL functions syn keyword cxxStlFreeFunctions back_inserter front_inserter inserter begin end +" Exceptions syn keyword cxxStlExceptionNames containedin=cxxStlLibrary exception contained syn keyword cxxStlExceptionNames containedin=cxxStlLibrary runtime_error contained syn keyword cxxStlExceptionNames containedin=cxxStlLibrary logic_error contained @@ -102,6 +110,10 @@ syn keyword cxxStlExceptionNames containedin=cxxStlLibrary range_error contained syn keyword cxxStlExceptionNames containedin=cxxStlLibrary overflow_error contained syn keyword cxxStlExceptionNames containedin=cxxStlLibrary underflow_error contained +" Some common boost-only bits I use +syn keyword cxxStlKeywords contained containedin=cxxBoostLibrary lexical_cast + +" Highlight dangerous things syn match cxxStlDangerousFunction "\(\.\)\@<=release()" diff --git a/vim/colors/adam.vim b/vim/colors/adam.vim index ae34993..4ff3e01 100644 --- a/vim/colors/adam.vim +++ b/vim/colors/adam.vim @@ -44,6 +44,8 @@ hi Todo ctermfg=Black ctermbg=yellow term=none start=[103;90m stop=[ hi Cursor ctermfg=blue term=none start=[94m stop=[0m hi Directory ctermfg=Blue term=none start=[94m stop=[0m +hi ModeMsg ctermfg=white cterm=bold term=bold start=[97m stop=[0m + " Directory thru netrw hi netrwHelpCmd ctermfg=Green @@ -55,9 +57,9 @@ hi netrwSymLink ctermfg=Cyan "hi Cursor guibg=#60a060 guifg=#00ff00 " ctermfg=#00ff00 -hi Search ctermbg=brown ctermfg=white cterm=bold +hi Search ctermbg=brown ctermfg=white cterm=bold term=bold start=[48;5;130;97m stop=[0m "hi IncSearch cterm=NONE ctermbg=steelblue -hi LineNr ctermfg=yellow +hi LineNr ctermfg=yellow term=none start=[93m stop=[0m hi title ctermbg=yellow ctermfg=white hi ShowMarksHL ctermbg=yellow ctermfg=black cterm=bold hi CursorLine ctermbg=yellow ctermfg=black cterm=bold @@ -154,11 +156,12 @@ hi NamedConstant ctermfg=blue term=none start=[94m stop=[0m " This is from vimrc.colors -- I may reintegrate it back together. "hi User0 ctermfg=green ctermbg=green term=bold -hi statusline ctermfg=white ctermbg=black term=none start=[107;30m stop=[0m +hi statusline ctermfg=white ctermbg=black cterm=reverse term=reverse start=[97;40m stop=[0m +hi statuslinenc ctermfg=grey ctermbg=grey cterm=reverse term=reverse start=[37;47m stop=[0m hi User1 ctermfg=red ctermbg=white term=standout term=none start=[91;107m stop=[0m hi User2 ctermfg=darkmagenta ctermbg=white term=standout term=none start=[35;107m stop=[0m hi User3 ctermfg=blue ctermbg=white term=standout term=none start=[34;107m stop=[0m -hi User4 ctermfg=cyan ctermbg=white term=standout term=none start=[36;107m stop=[0m +hi User4 ctermfg=darkcyan ctermbg=white term=standout term=none start=[36;107m stop=[0m hi User5 ctermfg=brown ctermbg=white term=standout term=none start=[33;107m stop=[0m hi User6 ctermfg=darkgreen ctermbg=white term=standout term=none start=[32;107m stop=[0m hi User8 ctermfg=magenta ctermbg=black term=bold term=none start=[95;40m stop=[0m @@ -166,6 +169,13 @@ hi User9 ctermfg=white ctermbg=black term=bold term=none start=[94m stop=[0m hi EndOfBuffer ctermfg=blue term=none start=[94m stop=[0m +hi MoreMsg ctermfg=2 gui=bold guifg=SeaGreen term=none start=[92m stop=[0m +hi Question ctermfg=2 gui=bold guifg=SeaGreen term=none start=[92m stop=[0m + +hi TabLine term=underline cterm=underline ctermfg=15 ctermbg=242 gui=underline guibg=DarkGrey start=[48;5;242;38;5;15m stop=[0m +hi TabLineSel term=bold cterm=bold gui=bold +hi TabLineFill term=reverse cterm=reverse gui=reverse + " 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 diff --git a/vim/vimrc b/vim/vimrc index 12b0d5e..533641f 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -24,4 +24,4 @@ source ~/.vim/vimrc.fileprefs source ~/.vim/vimrc.statusline set shell=/bin/tcsh -set t_Co=1 +"set t_Co=1 diff --git a/vim/vimrc.functions b/vim/vimrc.functions index 1adaaea..4fb6a6e 100644 --- a/vim/vimrc.functions +++ b/vim/vimrc.functions @@ -17,12 +17,12 @@ function! MyFoldText() endfunction 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, ":" ) + "return join( res, ":" ) endfunction From 461ad4473818911fdf7468b75b1806f1960bb418 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Tue, 2 Mar 2021 20:02:57 -0500 Subject: [PATCH 13/13] Add a few more instances of special chars. I don't usually use them, but they could be useful. --- tcshrc.prompt.defs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tcshrc.prompt.defs b/tcshrc.prompt.defs index b5748fb..734ab0d 100644 --- a/tcshrc.prompt.defs +++ b/tcshrc.prompt.defs @@ -28,7 +28,7 @@ set referencechars_raw="${referencechars_raw} 2622" # Keyboard Symbol (Didn't look good -- spilled (not pushed) over 1.5 cells) set keyboard_sym="2328" -set referencechars_raw="${referencechars_raw} 2328" +set referencechars_raw="${referencechars_raw} ${keyboard_sym}" # Telephone (Spills over 1 cell.) set referencechars_raw="${referencechars_raw} 260e" @@ -66,6 +66,15 @@ set referencechars_raw="${referencechars_raw} 263f 2640 2641 2642" # Roman Numerals #set referencechars_raw="${referencechars_raw} 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 216a 216b" +# More symbols -- Recycling, Biohazard, Peace Sign, Atom, swords, flag, worktools, scales, fleur-de-lis, star, Face +#set referencechars_raw="${referencechars_raw} 267B 2623 262e 269b 2694 2692 2696 269a 2605 263b" + +# Wider symbols -- Cedeuceus, Anchor, +#set referencechars_raw="${referencechars_raw} 2624 2693" + +# Zodiac symbols +#set referencechars_raw="${referencechars_raw} 2658 2649 264a 264b 264c 264d 264e 264f 2650 2651 2652 2653" + # Misc stuff -- colour? baseball Takes up too many width slots. Throws off alignment. #set referencechars_raw="${referencechars_raw} 26be"