Skip to content

Instantly share code, notes, and snippets.

@conormcd
Created March 9, 2012 17:21
Show Gist options
  • Save conormcd/2007624 to your computer and use it in GitHub Desktop.
Save conormcd/2007624 to your computer and use it in GitHub Desktop.
vimrc fragment to highlight trailing semi-colons in python
autocmd BufNewFile,BufRead *.py call PythonRules()
autocmd FileType python call PythonRules()
function! PythonRules()
highlight TrailingSemiColon ctermbg=red guibg=red
match TrailingSemiColon /\;$/
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment