💻 Software
Vim lint check - only show message if there's an error
Fresh6 days ago
Mar 15, 20261940 viewsConfidence Score0%
0%
Problem
I have this line in my , which means "when I save a .rb file, run it through " (the ruby interpreter's error checking). When I save that file, I always see output at the bottom of the screen, so I get used to it and start ignoring it. What I want is to only see output if there are errors. I can see…
Error Output
autocmd BufWritePost *.rb !ruby -c <afile>
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Vim lint check - only show message if there's an error
Low Risk
You should definitely look at Syntastic plugin. It automatically checks the syntax of the file in current buffer on save, supports many filetypes (ruby, python, php, etc out of the box) and does exactly what you need - it shows output only in case o…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix