From c7403ace11681406bcd2aee6409a1e2244f4d9a7 Mon Sep 17 00:00:00 2001 From: jontino tinerino Date: Fri, 12 Apr 2024 00:13:35 -0400 Subject: [PATCH] added vim files to mac --- mac/.vim/commentN.txt | 13 ++ mac/.vim/commentP.txt | 13 ++ mac/.vim/commentQ.txt | 15 ++ mac/.vim/commentS.txt | 13 ++ mac/.vim/ftdetect/ano.vim | 1 + mac/.vim/ftdetect/go.vim | 135 ++++++++++++ mac/.vim/ftdetect/prv.vim | 1 + mac/.vim/ftdetect/txt.vim | 5 + mac/.vim/syntax/ano.vim | 231 ++++++++++++++++++++ mac/.vim/syntax/go.vim | 135 ++++++++++++ mac/.vim/syntax/prv.vim | 283 +++++++++++++++++++++++++ mac/.vim/syntax/rust.vim | 385 ++++++++++++++++++++++++++++++++++ mac/.vim/syntax/tests/ano.ano | 37 ++++ mac/.vim/syntax/tests/prv.prv | 36 ++++ mac/.vim/syntax/tests/txt.txt | 53 +++++ mac/.vim/syntax/txt.vim | 297 ++++++++++++++++++++++++++ mac/.vimrc | 113 ++++++++++ 17 files changed, 1766 insertions(+) create mode 100644 mac/.vim/commentN.txt create mode 100644 mac/.vim/commentP.txt create mode 100644 mac/.vim/commentQ.txt create mode 100644 mac/.vim/commentS.txt create mode 100644 mac/.vim/ftdetect/ano.vim create mode 100755 mac/.vim/ftdetect/go.vim create mode 100644 mac/.vim/ftdetect/prv.vim create mode 100755 mac/.vim/ftdetect/txt.vim create mode 100755 mac/.vim/syntax/ano.vim create mode 100755 mac/.vim/syntax/go.vim create mode 100755 mac/.vim/syntax/prv.vim create mode 100755 mac/.vim/syntax/rust.vim create mode 100644 mac/.vim/syntax/tests/ano.ano create mode 100644 mac/.vim/syntax/tests/prv.prv create mode 100644 mac/.vim/syntax/tests/txt.txt create mode 100755 mac/.vim/syntax/txt.vim create mode 100644 mac/.vimrc diff --git a/mac/.vim/commentN.txt b/mac/.vim/commentN.txt new file mode 100644 index 0000000..c0721ca --- /dev/null +++ b/mac/.vim/commentN.txt @@ -0,0 +1,13 @@ +# ============================================================================== +# Auth: Alex Celani +# File: XXX.xx +# Revn: MM-DD-YYYY 0.0 +# Func: +# +# TODO: create +# ============================================================================== +# CHANGE LOG +# ------------------------------------------------------------------------------ +# MM-DD-YYYY: init +# +# ============================================================================== diff --git a/mac/.vim/commentP.txt b/mac/.vim/commentP.txt new file mode 100644 index 0000000..f7ba4e0 --- /dev/null +++ b/mac/.vim/commentP.txt @@ -0,0 +1,13 @@ +% ============================================================================== +% Auth: Alex Celani +% File: XXX.xx +% Revn: MM-DD-YYYY 0.0 +% Func: +% +% TODO: create +% ============================================================================== +% CHANGE LOG +% ------------------------------------------------------------------------------ +% MM-DD-YYYY: init +% +% ============================================================================== diff --git a/mac/.vim/commentQ.txt b/mac/.vim/commentQ.txt new file mode 100644 index 0000000..31deb28 --- /dev/null +++ b/mac/.vim/commentQ.txt @@ -0,0 +1,15 @@ +""" + =============================================================================== + Auth: Alex Celani + File: XXX.py + Revn: MM-DD-YYYY 0.0 + Func: + + TODO: create + =============================================================================== + CHANGE LOG + ------------------------------------------------------------------------------- + MM-DD-YYYY: init + + =============================================================================== +""" diff --git a/mac/.vim/commentS.txt b/mac/.vim/commentS.txt new file mode 100644 index 0000000..a189ae0 --- /dev/null +++ b/mac/.vim/commentS.txt @@ -0,0 +1,13 @@ +// ============================================================================= +// Auth: Alex Celani +// File: XXX.xx +// Revn: MM-DD-YYYY 0.0 +// Func: +// +// TODO: create +// ============================================================================= +// CHANGE LOG +// ----------------------------------------------------------------------------- +// MM-DD-YYYY: init +// +// ============================================================================= diff --git a/mac/.vim/ftdetect/ano.vim b/mac/.vim/ftdetect/ano.vim new file mode 100644 index 0000000..d7e32bb --- /dev/null +++ b/mac/.vim/ftdetect/ano.vim @@ -0,0 +1 @@ +au BufRead,BufNewFile *.ano set filetype=ano diff --git a/mac/.vim/ftdetect/go.vim b/mac/.vim/ftdetect/go.vim new file mode 100755 index 0000000..aba646a --- /dev/null +++ b/mac/.vim/ftdetect/go.vim @@ -0,0 +1,135 @@ +" ============================================================================== +" Auth: David Daub , Alex +" Lang: GoLang +" Revn: 15-11-2009 Official, 03-27-2020 1.4 +" Func: Define syntax coloring for .go files when being edited in Vim +" +" TODO: very much +" learn regex +" learn Go +" ============================================================================== +" CHANGE LOG +" ------------------------------------------------------------------------------ +" 12-31-2018: init +" 01-01-2019: added header block +" added coloring for bool type +" changed print/println to Print/Println, added Printf/Sprintf +" changed boolean values link to Keyword (Yellow) from Boolean +" (Green?) +" 01-02-2019: added coloring for main and Scanln +" 12-26-2019: changed goBoolean link from Keyword to Type +" added coloring for error +" 03-27-2020: added while to list of repetition structures +" +" ============================================================================== + +" Quit when a (custom) syntax file was already loaded +if exists("b:current_syntax") + finish +endif + + +" A bunch of useful Go keywords +syn keyword goStatement select +syn keyword goStatement defer +syn keyword goStatement fallthrough range type +syn keyword goStatement return + +syn keyword goClause import package +syn keyword goConditional if else switch +syn keyword goBranch goto break continue +syn keyword goLabel case default +syn keyword goRepeat for +syn keyword goRepeat while +" Added this line ^^^ +syn keyword goType struct const interface func +syn keyword goType var map +syn keyword goType uint8 uint16 uint32 uint64 +syn keyword goType int8 int16 int32 int64 +syn keyword goType float32 float64 +syn keyword goType float32 float64 +syn keyword goType byte +syn keyword goType uint int float uintptr string +syn keyword goType bool +" Added this line ^^^ +syn keyword goType error +" Added this line ^^^ + +syn keyword goConcurrent chan go + +syn keyword goValue nil +syn keyword goBoolean true false + +syn keyword goConstant iota + +" Builtin functions +syn keyword goBif len make new close closed cap map + +" According to the language specification it is not garanteed to stay in the +" language. See http://golang.org/doc/go_spec.html#Bootstrapping +syn keyword goBif Print Println Printf Sprintf Scanln +" Changed print[ln] to Print[ln] ^^^ + +syn keyword goBif panic panicln main + +" Comments +syn keyword goTodo contained TODO FIXME XXX +syn match goLineComment "\/\/.*" contains=@Spell,goTodo +syn match goCommentSkip "^[ \t]*\*\($\|[ \t]\+\)" +syn region goComment start="/\*" end="\*/" contains=@Spell,goTodo + +" Numerals +syn case ignore +"integer number, or floating point number without a dot and with "f". +syn match goNumbers display transparent "\<\d\|\.\d" contains=goNumber,goFloat,goOctError,goOct +syn match goNumbersCom display contained transparent "\<\d\|\.\d" contains=goNumber,goFloat,goOct +syn match goNumber display contained "\d\+\(u\=l\{0,2}\|ll\=u\)\>" + +" hex number +syn match goNumber display contained "0x\x\+\(u\=l\{0,2}\|ll\=u\)\>" + +" oct number +syn match goOct display contained "0\o\+\(u\=l\{0,2}\|ll\=u\)\>" contains=goOctZero +syn match goOctZero display contained "\<0" + +syn match goFloat display contained "\d\+\.\d*\(e[-+]\=\d\+\)\=" +syn match goFloat display contained "\d\+e[-+]\=\d\=\>" +syn match goFloat display "\(\.[0-9_]\+\)\(e[-+]\=[0-9_]\+\)\=[fl]\=i\=\>" + +" Literals +syn region goString start=+L\="+ skip=+\\\\\|\\"+ end=+"+ contains=@Spell + +syn match goSpecial display contained "\\\(x\x\+\|\o\{1,3}\|.\|$\)" +syn match goCharacter "L\='[^\\]'" +syn match goCharacter "L'[^']*'" contains=goSpecial + + +hi def link goStatement Statement +hi def link goClause Preproc +hi def link goConditional Conditional +hi def link goBranch Conditional +hi def link goLabel Label +hi def link goRepeat Repeat +hi def link goType Type +hi def link goConcurrent Statement +hi def link goValue Constant +hi def link goBoolean Type +" Changed goBoolean link from Boolean to Keyword +" Changed goBoolean link from Keyword to Type +hi def link goConstant Constant +hi def link goBif Function +hi def link goTodo Todo +hi def link goLineComment goComment +hi def link goComment Comment +hi def link goNumbers Number +hi def link goNumbersCom Number +hi def link goNumber Number +hi def link goFloat Float +hi def link goOct Number +hi def link goOctZero Number +hi def link goString String +hi def link goSpecial Special +hi def link goCharacter Character + + +let b:current_syntax = "go" diff --git a/mac/.vim/ftdetect/prv.vim b/mac/.vim/ftdetect/prv.vim new file mode 100644 index 0000000..282b4f2 --- /dev/null +++ b/mac/.vim/ftdetect/prv.vim @@ -0,0 +1 @@ +au BufRead,BufNewFile *.prv set filetype=prv diff --git a/mac/.vim/ftdetect/txt.vim b/mac/.vim/ftdetect/txt.vim new file mode 100755 index 0000000..3d876da --- /dev/null +++ b/mac/.vim/ftdetect/txt.vim @@ -0,0 +1,5 @@ + + +autocmd BufNewFile,BufRead *.txt set filetype=txt + + diff --git a/mac/.vim/syntax/ano.vim b/mac/.vim/syntax/ano.vim new file mode 100755 index 0000000..8c8d521 --- /dev/null +++ b/mac/.vim/syntax/ano.vim @@ -0,0 +1,231 @@ +" ==================================================================== +" Auth: jontino +" Lang: ANO +" Revn: 04-17-2023 1.0 +" Func: Define syntax coloring for .ano files when being edited in Vim +" +" TODO: begin writing, add new words +" implement regular expressions for match baby names +" ==================================================================== +" CHANGE LOG +" -------------------------------------------------------------------- +" 04-17-2023: copied from prv.vim +" +" ==================================================================== + +" Quit when a (custom) syntax file was already loaded +if exists("b:current_syntax") + finish +endif + + +" Required fields +" Comments +" header comments # Green +" single line comments // Cyan +" in/multi line comments /* ... */ Cyan +" Quotes +" must work multiline +" Gray? LightRed? +" Names +" + + + +" XXX Dates: +" Date highlighting for the Change Log +" the first and last quote define the expression +" \d is any digit [0-9] +" \{1,2} matches 1 or 2 times, although it should only ever get 2 +" - literal hyphen, which seperates months, days, and years +" The same three elements are repeated again for the days +" \d is any digit, used again for the years +" \{4} for only four digits can be matched +" ends with : because only dates in change log should be highlighted +" marked as contained, as it should only be highlighted in comments +" contains colon, so I can highlight the color separately +" for some reason, the colon doesn't work as keyword, so simple match +syn match date "\d\{1,2}-\d\{1,2}-\d\{4}:" contained contains=colon +syn match colon ":" contained + + + +" XXX Comments: +" comments come after # +" eg| not comment # now a comment +" # comment +" not a comment +" not +" not +" ### comment +" +" first and last quote define the expression +" # can come literally, because it doesn't need escaping +" . is every non-new line character possible +" * matches as many matches as possible +" i.e. a pound sign, and then as many characters as possible +syn match header "#.*" contains=commentFields,commentTodo,date,names,germ,rus,latin,rusgerm +syn match SLcomment "//.*" contains=names,germ,rus,latin,rusgerm +syn region ILMLcomment start="/\*" end="\*/" contains=names,germ,rus,latin,rusgerm +" commentFields and commentTodo are contained within comments, so they +" are as such in the definition of a comment, and listed as contained +" in their own definitions +" commentFields is match instead of keyword, will contain the space +syn keyword commentFields contained Auth Revn File Func +syn keyword commentTodo contained TODO todo Todo XXX FIXME +syn match commentFields contained "CHANGE LOG" + + + +" XXX Quotes: +" quotes should exist between odd pairs of quotation marks +" eg| "quote" not +" "quote" not "quote" +" "not +" quote" +" "quote only if the it rolls +" over onto the next line" +" Calling the quotation a region instead of pattern match makes it +" easier to wrap around a new line +" the first and last quote define the expression +" \ escapes the next character, allowing \" to appear as a literal " +" thus, start and end are both quotes, and the reqion can span lines +syn region quote start="\"" end="\"" contains=names,germ,rus,latin,rusgerm +" -- DEPRECATED -- +" the first and last quote define the expression +" \ is the escape character, so \" means I want to look for a quote +" . is every non-new line character possible +" \{,} is \{0,infinity}, means I'm looking for between 0 and infinity +" matches for the previous character, which is a wildcard, . +" \{-,} will prioritize the smallest amount of matches possible +" syn match quote "\".\{-,}\"" +" -- DEPRECATED -- + + + +" XXX Notes: +" Allow for notes to be left with special highlighting +" \c escapes the case, so search is entirely case insensitive +" note are all literals +" s\? will alow for either 0 or 1 of the character "s" to be matched, +" essentially allowing for both notes and note +" finally followed by a colon +" nextgroup is the actual notes to be taken, as this is just the tag +syn match noteTag "\cnotes\?:" nextgroup=notes +" define notes as starting with space, ending with exclamation mark +" if it's not denoted as contained, then the whole damn thing will be +" highlighted +syn region notes start=" " end="!" contained + + + +" XXX Names: +" keyword to the whole list of words +" lmfao ignore case sensitivity to avoid writing things twice +syn case ignore + +" nicknames for archie +syn keyword ambiii archie chicho chach chibo +syn keyword ambiii barchie chachfield archibald +syn match ambiii "Lord Archibald Mordecai Blackanddecker III" + +" nicknames for olly +syn keyword obrg olly bolly boliver oliver ogibler oboe +syn match obrg "bolly bear" +syn match obrg "bolly ball" +syn match obrg "olly ball" +syn match obrg "Sir Oliver Boliver Rockford Gubbins" + +" things that apply to both babies +syn match both "of Sealand" +syn match both "sink boy" +syn match both "baby boy" + +" us? +syn keyword parents mom dad + +syn case match +" lmfao and turn the case sensitivity back on + + + + +" keeping this as it might be useful later +" XXX Expressions: +" highlight equations, formulas, expressions, etc +" expressions: .* is any number of characters +" = is literal +" .* is any number of characters again +" added spaces around = to avoid confusion with => +" +" the idea is that it's stuff that equals stuff, and we +" worry about what it is later +" name: \c case-escapes the sequence +" \a is alphabetic characters, probably don't need escaping +" \+ is at least 1 match, so it's 1 or more letters is a name +" name: \c\a\= is 0 or 1 case-escaped alphabetic characters +" _ is literal, best I can get to subscripts +" \a\+ is 1 or more case-escaped alphabetic characters +" op: inside [] can allow for one choice from any contained characters +" =, +, -, /, ^ are all literals for operations +" \* escapes the * character, which is now multiplication +" Num: see Numbers: below +" FIXME try to make name into one thing, probably with \{,1} + + +" ColorGuide: ctermfg and ctermbg args - - - - source:: :help cterm +" Black +" LightBlue/Cyan/LightCyan, Blue/DarkBlue/DarkCyan +" Green/LightGreen, DarkGreen +" Red/LightRed, DarkRed +" Magenta/LightMagenta, DarkMagenta +" Yellow/LightYellow, DarkYellow/Brown +" White +" Gray/LightGray, DarkGray +" ColorGuide: ctermfg and ctermbg args - - - - source:: :help cterm +" ColorGuide: - - - - - - - - - - - - - - - source:: :help group-name +" Dates and fields in comments still use links for highlighting to get +" access to 'term' arguments that don't want to load correctly, namely +" Underline -> PreProc (Magenta in default colo), with underline +" ColorGuide: - - - - - - - - - - - - - - - source:: :help group-name + + +" XXX Coloring: +" hi[ghlight] cterm=