On Fri, Sep 27, 2019 at 1:24 PM Christian Brabandt <cblists@256bit.org> wrote:
On Fr, 27 Sep 2019, Uday Reddy B wrote:
> Hello,
>
> I notice that the quickfix list and cycling through errors does not work when using ':!cmake ...' but works when using exactly the same command by setting 'let &makeprg="cmake ...' and then ':make'.
>
> Would there be a way to get the former working as is? Thanks!
No that is not possible. The :! command, always starts an external
command from your shell. Vim does not parse the output (and doesn't even
know what kind of command is started). That's why Vim has introduced the
:make command.
Thanks very much - makes sense. On this note, I notice that the :make command does not yield any colors in its output (for eg. the compiler errors that appear in red) while the same command via "!cmake ...' yields colors the same way it does on the shell. This was one reason I was trying to see if the quickfix list could work through an external command.
- Uday
Best,
Christian
--
Durch Abwesenheit seine Hochschätzung oder Verehrung befördern: Wie
die Gegenwart den Ruhm vermindert, so vermehrt ihn die Abwesenheit.
-- Baltasar Gracián y Morales (Handorakel und Kunst der Weltklugheit)
--
--
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/20190927075405.GC5154%40256bit.org.
--
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/CALA1MBJCw032iUfhVFEPd6fZ3sKMy7v53xnaYHNGZ_Y3J7wjyw%40mail.gmail.com.
No comments:
Post a Comment