Skip to content

Instantly share code, notes, and snippets.

@simonced
Created July 22, 2017 00:38
Show Gist options
  • Save simonced/778539d36fc2c93abd8cbdad000087f4 to your computer and use it in GitHub Desktop.
Save simonced/778539d36fc2c93abd8cbdad000087f4 to your computer and use it in GitHub Desktop.
sample of how to highlight some words in buffers
" following is required
syntax on
syntax enable
augroup badwords
au!
" for each buffer opened, we activate highlight of some words
autocmd BufRead * match ErrorMsg /I think/
augroup END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment