On Sat, Jul 4, 2020 at 11:02 AM Kunal Chauhan <atkunalchauhan@gmail.com> wrote:
>
> Hi Team.
>
> I am using the :make all from vim in my source code.
> as the code has multiple warning and some error.
>
> Point is: if i do the clist it shows multiple lines of code with warning , but I want to follow up the error part only , with out scrolling so much in clist .
> Is there will some nicer way of finding the error part easily of compilation via quickfixlist in large code base ?
>
>
>
> Thanks
> kunal
The :cn[ext] (go to next error) and :cN[ext] (go to previous error)
allow you to go to the next point in the source where the compiler
complained, evn if the quickfix list itself isn't displayed. Similarly
:cnf[ile] and :cNf[ile] (next and previous file), and :crew[ind] (go
to first error) and :clast (go to last error). If you don't mind
taking up three keys with and without Shift, you can even assign them
to keys, for example as follows:
:map <F2> :cn<CR>
:map <S-F2> :cN<CR>
:map <F3> :cnf<CR>
:map <S-F3> :cNf<CR>
:map <F4> :crew<CR>
:map <S-F4> :clast<CR>
The same mappings apply of curse in any quickfix list, i.e not only as
generated by :make but also by :helpgrep and :vimgrep
Best regards,
Tony.
--
--
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/CAJkCKXu3BXXRPDk0nnncKCo-HaG7CeuhS4mm2ZX%2BZymyTQ-DCQ%40mail.gmail.com.
No comments:
Post a Comment