Last active
August 29, 2015 14:23
-
-
Save Su-Shee/450ccbf2f665094aae50 to your computer and use it in GitHub Desktop.
quick & dirty vim syntax highlighting for "bad writing style" in german
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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