I want to see the value of a variable, so I run the command
:let
Vim displays the results of this command using the --more--
pager.
How can I search this for a phrase, e.g. html
?
I've looked the man page for the more pager which says +/
is used for search but it doesn't seem to work, neither does /
as per the less pager.
Ctrl-d
).-- More -- SPACE/d/j: screen/page/line down, b/u/k: up, q: quit
in the commandline.:let
then don't hitEnter
, butTab
orCtrl-d
- you'll have a list of existing variables, displayed in "more" style - now hitEsc
, write a few letters, hitTab
orCtrl-d
again ... and so on until you find the variable you want. Actually, to see the value of a variable, perhaps you should useecho
instead? (Orset variable-name?
for options)Ctrl-d
and the echo trick worked nicely, thanks!