Last active
January 8, 2020 04:53
-
-
Save jude/e69350d74caf2f41115273aa4c92a6a2 to your computer and use it in GitHub Desktop.
.vimrc words to avoid
This file contains 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
syntax on | |
" TechWordsToAvoid: https://wynnnetherland.com/linked/2014010902/words-to-avoid-in-tech-writing | |
" SportsballWords: https://www.ehtc.com/resources/news-articles/bid/87767/Sports-The-Lingo-of-Business, https://www.nytimes.com/2013/07/07/jobs/going-the-distance-with-sports-analogies.html | |
let badwords=[ {'name': 'TechWordsToAvoid', 'regexp': '/\c\<\(obviously\|basically\|simply\|of\scourse\|clearly\|just\|everyone\sknows\|however\|so\|easy\)\>/'}, | |
\ {'name': 'SportsballWords', 'regexp': '/\c\<\(ball\|base\|blow\|bounce\|corner\|course\|court\|dive\|dunk\|field\|game\|hit\|hitters\|home\srun\|huddle\|hurdle\|jump\|kick\|league\|lose\|nine\syards\|pace\|par\|play\|punt\|rookie\|scrum\|shot\|sprint\|strike\|swing\|tackle\|team\|throw\|touch\|win\)\>/'} | |
\ ] | |
for bw in badwords | |
execute 'syntax match ' . bw.name . ' ' . bw.regexp | |
execute 'autocmd Syntax * syntax match ' . bw.name . ' ' . bw.regexp . ' containedin=ALL' | |
execute 'highlight link ' . bw.name . ' Todo' | |
endfor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment