I want to see the current statusline definition/string as loaded by Vim. So, taking into account :help statusline
, if it is the default, the output would be empty, but if ruler
is set (and nothing more) the output would be:
%<%f\ %h%m%r%=%-14.(%l,%c%V%)\ %P
I have tried :echo statusline
but I get there is no such variable and I have tried :echo $statusline
, but it does not appear any output.
:set option?
or:echo &option
to see the value ofoption
.option
by the actualoption-name
, e.g. in your case::echo &statusline
option
with the name of the option you're interested in. Try:set statusline?
. You should at least seestatusline=
(and nothing more) ifstatusline
is not set.statusline=
with:set statusline?
, however I haveset ruler
in my.vimrc
and therefore I have a statusline.