I have the over 30 errors in my LaTeX file, all over the \ref{...} command, and all following this similar pattern (I put it as a quote instead of code as it is long and code does not wrap)
I returned and saw under the sun, that the race is not to the swift, nor the battle to the strong, neither yet bread to the wise, nor yet riches to men of understanding, nor yet favour to men of skill; but time and chance happeneth to them all. \ref{bible:ecclesiastes}
Every time I get the following complaint over \ref{...}
perhaps you should insert a `~' before "\ref"
Why am I getting this error? How can I avoid it?
vim? Is that the exact reference given? – Werner Dec 08 '11 at 18:57|6 error| perhaps you should insert a~' before "\ref"` where 6 is the line number – puk Dec 08 '11 at 19:04chktex? (and yes, I voted to move it; "latex editors" is explicitly given in the FAQ, so vim used for editing TeX would be OK there, I think ) – derobert Dec 08 '11 at 19:12syntasticon, but that is just for javascript. Also, I am using beautifiers for javascript and PHP. Besides that, I have not turned on any syntax checkers. – puk Dec 08 '11 at 19:21vimsolution. – Werner Dec 08 '11 at 20:12syntasticalso does error checking for a variety of filetypes, including LaTeX. For LaTeX, it uses thelacheckscript, which gives the error message. – Aditya Dec 09 '11 at 08:26