Skip to content

Instantly share code, notes, and snippets.

@Su-Shee
Last active August 29, 2015 14:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Su-Shee/450ccbf2f665094aae50 to your computer and use it in GitHub Desktop.
Save Su-Shee/450ccbf2f665094aae50 to your computer and use it in GitHub Desktop.
quick & dirty vim syntax highlighting for "bad writing style" in german
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
syn case match
" indication for missing a proper subject or object 'who is doing what?'
syn keyword authorAnonym man
" empty words to be removed - immediate conciseness :)
syn keyword authorZero nun ja gar so ungefähr
syn keyword authorZero wirklich überhaupt sehr je manchmal beinahe riesig nur Gerade
syn keyword authorZero riesige allerdings etwas schon doch soviel soviele sovielen
syn keyword authorZero grösstenteils hauptsächlich weitgehend weiter übrigens
" passive is to be avoided ;)
syn keyword authorPassive wird wurde geworden werde wurden wirst werdet werden
syn keyword authorPassive gemacht seid sollte sollten müsste könnte sein mussten
" relicts from my social science past ;)
syn match authorCheck /\(u\|U\)mfeld/
" typical german thing: ripping apart verbs
syn match authorCheck /\(dar\.\|hat\.\|vor\.\)/
" embellishments can go too
syn match authorCheck /\w\+igste\?n\?/
" indicates usally a "blah"-ish academic sounding verb
syn match authorCheck /\<\u\w\+ieren\>/
" hidden relative clause, sentence too long
syn match authorDash / \- /
"syn match authorVerb / zu \w\{4,\}/
" typical german buzzword/academic blah word endings
syn match authorBuzz /\w\+\(ismus\|ierung\|tion\|ung\)\(en\)\?/
syn match authorBuzz /\w\+\(tor\|tät\)\(en\)\?/
" pseudo-adjectives
syn match authorAdjektiv /\w\+\(lich\>\|haft\>\|sam\>\|isch\>\|är\>\|weise\>\)/
syn match authorAdjektiv /\w\+\(end\)e\?n\?\>/
" indicates passives on the verb
syn match authorPassive /\<ge\w\+te\?n\?\>/
syn match authorPassive /\<be\w\+te\?n\?\>/
syn match authorPassive /\<\l\+\(iert\|ier\)\(en\)\?/
"hi link authorPassive Statement
hi authorPassive guifg=yellow
hi authorAnonym guifg=cyan
hi authorZero guifg=red
hi authorBuzz guifg=blue
hi authorCheck guifg=magenta
hi authorDash guifg=cyan
hi authorInspect guifg=yellow
hi authorAdjektiv guifg=orange
hi authorVerb guifg=green
let b:current_syntax = "author"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment