Saturday, May 2, 2020

Re: Help: make file in vim shows error but in vim it is very hard to scroll to file of error

On 2020-05-02, Kunal Chauhan wrote:
> Hi Team,
>
> I have large code , and run make all command in vim but at the end it shows
> some error for navigating to that error I have to scroll down all the stuff
> which is very painful.
>
> Is there is a fast way to see or navigate to file which is causing error ?

If you run make all by executing the vim :make command like this:

:make all

then all the errors will be captured in a quickfix list and you can
easily navigate to each one by using the :cn and :cp commands, or by
opening the quickfix list with the :copen command, searching or
scolling through the list and hitting Enter on the desired error.
In either case, Vim with then open a buffer containing that file and
with the cursor on the line with the error.

See

:help 30.1
:help :make
:help quickfix.txt

Regards,
Gary

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20200502165521.GB390%40phoenix.

No comments:

Post a Comment