Skip to content
Permalink
Browse files

Added test for words to avoid in technical writing.

Nifty idea to highlight words one should avoid in technical writing.
  • Loading branch information
zanshin committed Jan 27, 2014
1 parent 39fca17 commit 30068116047f2225f6c71b1396481a6fa6a431f1
Showing with 16 additions and 0 deletions.
  1. +16 −0 vim/vimrc
@@ -231,6 +231,22 @@ endif
" Map escape to jj -- much faster to reach and type
imap jj <esc>

" Highlight words to avoid in tech writing
" =======================================
"
" obviously, basically, simply, of course, clearly,
" just, everyone knows, However, So, easy
"
" http://css-tricks.com/words-avoid-educational-writing/
" https://github.com/pengwynn/dotfiles/commit/12159ea233180344be4e25d57056ccd37061a153

highlight TechWordsToAvoid ctermbg=red ctermfg=white
match TechWordsToAvoid /\cobviously\|basically\|simply\|of\scourse\|clearly\|just\|everyone\sknows\|however\|so,\|easy/
autocmd BufWinEnter * match TechWordsToAvoid /\cobviously\|basically\|simply\|of\scourse\|clearly\|just\|everyone\sknows\|however,\|so,\|easy/
autocmd InsertEnter * match TechWordsToAvoid /\cobviously\|basically\|simply\|of\scourse\|clearly\|just\|everyone\sknows\|however,\|so,\|easy/
autocmd InsertLeave * match TechWordsToAvoid /\cobviously\|basically\|simply\|of\scourse\|clearly\|just\|everyone\sknows\|however,\|so,\|easy/
autocmd BufWinLeave * call clearmatches()

" -------------------------------------------------------------------
" Searching
" -------------------------------------------------------------------

0 comments on commit 3006811

Please sign in to comment.
You can’t perform that action at this time.