Monday, May 31, 2021

Re: statusline default - :set stl&

Sven wrote:

> when you start with "vim -u NONE" then there is a statusline.
> filename, modification status, ruler (line,column) and percentage.
>
> but when you look at the setting with ":set statusline" then
> nothing is shown. so i suppose an internal default value is used.
>
> but how to show it? the ":help statusline" does not list it.
> and with ":set statusline&" is goes back to empty again. :-/
>
> i am aware of the examples in options.txt, and yet i think
> that ":set stl" should show something else than an empty value.
> or rather, when this value is empty then nothing is shown at all. ;)

There are two ways to look at this. In general, when you make an option
empty and then later check the value, you expect it to still be empty.

We don't really have a mechanism to show what is used as "the builtin
default". And for 'statusline' I think the only reason to get this is
so you can change it. Then you need to look at the help for
'statusline' anyway, and you can find the example.

--
An indication you must be a manager:
You feel sorry for Dilbert's boss.

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ 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/202105311723.14VHNcP02088450%40masaka.moolenaar.net.

No comments: