Friday, May 22, 2020

Re: error list

This is exactly what I was looking for. Thank you. The other response mentioning copen will be useful, too.

Some how, I don't think I have never used the execute command in something close to using vim for 20 years.

On Fri, May 22, 2020 at 3:26 PM Yegappan Lakshmanan <yegappanl@gmail.com> wrote:
Hi,

On Fri, May 22, 2020 at 12:18 PM Joseph <kingcanute76@gmail.com> wrote:
Is there an easy way to dump the error list to the current vim buffer/window?

Actually, is there a general way to do this for other commands too?

So - I want to type something like ':clist/m 0' would be great



Are you looking for the following command?

   :call append(1, split(execute('clist'), "\n"))

or in insert mode, type the following:

   <C-R>=execute('clist')

and then hit Enter to insert the quickfix list contents.

- Yegappan 

--
--
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/CAAW7x7%3Dojr1PsPqOVRkGPVcLCtgcQ9ip56erjfb%2BjBq%3Dza0JiA%40mail.gmail.com.

--
--
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/CAFim3NLrLB-ECu_Lm8EMXtzWbZ75wmATfRdOtLje2mOE%2BOO6oA%40mail.gmail.com.

No comments: