Created
March 9, 2012 17:21
-
-
Save conormcd/2007624 to your computer and use it in GitHub Desktop.
vimrc fragment to highlight trailing semi-colons in python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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