Can i go to the line of error , while compiling a C or C++
project ? Usually by executing make
, and parse the error string , and go to the specific file , and the line with errors.
Is there already an usable plugin ?
Yeah this is already buit into vim. After typing :make
type :cwindow
to bring up the error list. You can then navigate to the errors using this window.
You can as well after :mak
or :make
do :cope
to open the window with compiler output and once you are done :clo
to close it.
Use :cn
and :cp
for jumping to next and previous error or when you are in the window go to line that has the error with file name, line & column and press enter to jump there.
IIRC, this functionality is built into vim. A quick google search revealed this useful link. This describes vim's features for navigating the errors after a make.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With