Last Updated: February 25, 2016
·
713
· csexton

Vim+Ruby: highlight debugger statements

Highlight those debugger and binding.pry statements in vim:

" Make those debugger statements painfully obvious
au BufEnter *.rb syn match error contained "\<binding.pry\>"
au BufEnter *.rb syn match error contained "\<debugger\>"

Makes them very easy to see and find, and helps keep them out of version control.

Screenshot on my blog

1 Response
Add your response

thanks !

over 1 year ago ·