Friday, January 17, 2020

Re: set all - each option one line

Andy Wokula wrote:

> Am 15.01.2020 um 22:22 schrieb Erhy:
> > Hello!
> > I want to compare the options set in VIM.
> >
> > Do you know, how to format of set all output
> > that I have *for each option a separate line *?
> >
> > Thank you for tips
> > Erhy
>
> Apparently
> :set
> always (?) produces multi-column output.
> (sounds like one of those little annoyances that others didn't bother
> to ask for years)

How about ":set!" only using one column? Currently ! isn't used and I
can't think of anything we would want to use it for when listing
options.

> You could redirect to a buffer with very small temporary 'columns'
> setting (at least 12), but that's awful.
>
> Or :substitute the (redirected) multi-column output to get single column output:
>
> :%s/ \+\ze\%(no\l\+\%(\s\|$\)\| \S\)/\r/gIe
>
> Obviously the problem is how to not split within option values.
> My example output (not given here) shows a statusline with spaces and
> these don't appear escaped, so one just cannot skip escaped spaces --
> just make it a bit more unlikely to split there.

--
SECOND SOLDIER: It could be carried by an African swallow!
FIRST SOLDIER: Oh yes! An African swallow maybe ... but not a European
swallow. that's my point.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.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/202001171839.00HIdRQO010196%40masaka.moolenaar.net.

No comments:

Post a Comment