Saturday, May 4, 2013

Re: Quickfix list with multi-line messages

On 21:59 Sat 04 May , Marcin Bednarek wrote:
> Hello,
>
> Is it possible to add to quicklist message which will be show in multiple lines?
> (I do not want to break line when it is too long)
>
> Example:
>
> :call setqflist([{'bufnr': bufnr(''), 'lnum': 42, 'text': 'entry'}], 'a')
>
> This will add new line with text: "entry". Could "entry" by displayed
> in two lines?
>
> I tried below lines but I was not able to achieve desired result:
>
> :call setqflist([{'bufnr': bufnr(''), 'lnum': 42, 'text': 'ent\nry'}], 'a')
> :call setqflist([{'bufnr': bufnr(''), 'lnum': 42, 'text': 'ent<CR>ry'}], 'a')
>
>
> Thanks,
>
> Marcin
>
> --
> --
> 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.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Hi Marcin,

I think not. One remark that you should use "" instead of ''.
echo 'abc\ndef'
abc\ndef
echo "abc\ndef"
abc
def

Bud even if I use "" in your command the new line is change to a single
space. See :help expr-" and :help expr-'.

Best regadrds,
Marcin :)

--
--
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.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: