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 -- 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 [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAFim3NK%2Bmm28odQmf3KsDoK1N5-4ay1_wwb3frVtZK%3DSZrW%3Dnw%40mail.gmail.com. |
Hi, On Fri, May 22, 2020 at 12:18 PM Joseph <[hidden email]> wrote:
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 [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAAW7x7%3Dojr1PsPqOVRkGPVcLCtgcQ9ip56erjfb%2BjBq%3Dza0JiA%40mail.gmail.com. |
In reply to this post by Joseph Dornisch-2
On Fri, May 22, 2020 at 9:18 PM Joseph <[hidden email]> 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 1. Open the quickfix window :copen 2. Yank everything :1,$y 3. Close the quickfix window :cclose 4. Put, e.g. :0put 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 [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAJkCKXtqjfHEDV-J_zL8eNENn98GH4befGE-gzhDmUPOB6Vsuw%40mail.gmail.com. |
In reply to this post by Joseph Dornisch-2
On 2020-05-22, Joseph <[hidden email]> 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? I use this code, which you may adapt to your needs: " Send the output of a Vim command to a new scratch buffer. " " Example: :call lf_run#vim_cmd('digraphs') fun! lf_run#vim_cmd(cmd) botright 10new setlocal buftype=nofile bufhidden=wipe nobuflisted noswapfile nowrap call append(0, split(execute(a:cmd), "\n")) endf " Execute a Vim command and send the output to a new scratch buffer command! -complete=command -nargs=+ VimCmd call lf_run#vim_cmd(<q-args>) So, try: :VimCmd clist Hope this helps, Life. -- -- 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 [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/ra998t%24377f%241%40ciao.gmane.io. |
In reply to this post by Yegappan Lakshmanan
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 <[hidden email]> wrote:
-- 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 [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAFim3NLrLB-ECu_Lm8EMXtzWbZ75wmATfRdOtLje2mOE%2BOO6oA%40mail.gmail.com. |
Free forum by Nabble | Edit this page |