Skip to content

Instantly share code, notes, and snippets.

@robmiller
Last active January 2, 2016 20:29
Show Gist options
  • Select an option

  • Save robmiller/8357253 to your computer and use it in GitHub Desktop.

Select an option

Save robmiller/8357253 to your computer and use it in GitHub Desktop.

Revisions

  1. robmiller revised this gist Jan 10, 2014. 1 changed file with 7 additions and 4 deletions.
    11 changes: 7 additions & 4 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,9 @@
    highlight TechWordsToAvoid ctermbg=red ctermfg=white
    autocmd FileType markdown match TechWordsToAvoid /\c\<\(obviously\|basically\|simply\|of\scourse\|clearly\|just\|everyone\sknows\|however\|so,\|easy\)\>/
    autocmd BufWinEnter *.md match TechWordsToAvoid /\c\<\(obviously\|basically\|simply\|of\scourse\|clearly\|just\|everyone\sknows\|however\|so,\|easy\)\>/
    autocmd InsertEnter *.md match TechWordsToAvoid /\c\<\(obviously\|basically\|simply\|of\scourse\|clearly\|just\|everyone\sknows\|however\|so,\|easy\)\>/
    autocmd InsertLeave *.md match TechWordsToAvoid /\c\<\(obviously\|basically\|simply\|of\scourse\|clearly\|just\|everyone\sknows\|however\|so,\|easy\)\>/
    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()
  2. robmiller created this gist Jan 10, 2014.
    6 changes: 6 additions & 0 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    highlight TechWordsToAvoid ctermbg=red ctermfg=white
    autocmd FileType markdown match TechWordsToAvoid /\c\<\(obviously\|basically\|simply\|of\scourse\|clearly\|just\|everyone\sknows\|however\|so,\|easy\)\>/
    autocmd BufWinEnter *.md match TechWordsToAvoid /\c\<\(obviously\|basically\|simply\|of\scourse\|clearly\|just\|everyone\sknows\|however\|so,\|easy\)\>/
    autocmd InsertEnter *.md match TechWordsToAvoid /\c\<\(obviously\|basically\|simply\|of\scourse\|clearly\|just\|everyone\sknows\|however\|so,\|easy\)\>/
    autocmd InsertLeave *.md match TechWordsToAvoid /\c\<\(obviously\|basically\|simply\|of\scourse\|clearly\|just\|everyone\sknows\|however\|so,\|easy\)\>/
    autocmd BufWinLeave *.md call clearmatches()