Skip to content

Instantly share code, notes, and snippets.

@kylebelt
Last active December 17, 2015 05:08
Show Gist options
  • Select an option

  • Save kylebelt/5555216 to your computer and use it in GitHub Desktop.

Select an option

Save kylebelt/5555216 to your computer and use it in GitHub Desktop.
highlight nginx config lines that you forgot to add a semicolon to the end
au BufRead,BufNewFile /etc/nginx/conf.d/* set ft=nginx
autocmd FileType nginx highlight missingsemicolon ctermbg=red | match missingsemicolon /^[^#;{}]\+$/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment