Vim: How to show the error message when there is a syntax error?
I have a C file (or ruby file) and I have a syntax error. When I save there is a bar that appears on the left, and an arrow pointi开发者_如何学运维ng to the line where the syntax error is. I have the syntastic vim plugin installed so I don't know if that is a native feature or if it comes from the plugin.
Now my question is: How can I see the error message from within vim?
Vim has a built in ability to show you errors if you build a program using :make
and has its own set of commands for working with errors produced by the compiler you are using.
HOWEVER, it seems that syntastic bypasses this functionality and preforms syntactic checks directly. The command you are looking for is probably :Errors
. You should read the help for your plugin.
https://github.com/scrooloose/syntastic/blob/master/doc/syntastic.txt
精彩评论