Last active
January 2, 2016 20:29
-
-
Save robmiller/8357253 to your computer and use it in GitHub Desktop.
Match Chris Coyier's "words to avoid in tech writing", adapted from @pengwynn's original
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
highlight TechWordsToAvoid ctermbg=red ctermfg=white | |
function MatchTechWordsToAvoid() | |
match TechWordsToAvoid /\c\<\(obviously\|basically\|simply\|of\scourse\|clearly\|just\|everyone\sknows\|however\|so,\|easy\)\>/ | |
endfunction | |
autocmd FileType markdown call MatchTechWordsToAvoid() | |
autocmd BufWinEnter *.md call MatchTechWordsToAvoid() | |
autocmd InsertEnter *.md call MatchTechWordsToAvoid() | |
autocmd InsertLeave *.md call MatchTechWordsToAvoid() | |
autocmd BufWinLeave *.md call clearmatches() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Very nice. This is why we open source dotfiles, people.