Skip to content

Instantly share code, notes, and snippets.

@robmiller
Last active January 2, 2016 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save robmiller/8357253 to your computer and use it in GitHub Desktop.
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
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()
@pengwynn
Copy link

Very nice. This is why we open source dotfiles, people.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment