1

How can I find out the default value of a variable if it is not set? For example, the default timeout for the leader key is controlled by the timeoutlen variable, but if I do:

:echo timeoutlen

I get an "undefined variable" error. Is there any command to find out default values for variables like this?

Tyler Durden
  • 2,091
  • 2
  • 23
  • 42

2 Answers2

2

For options, you can use the special syntax &optionname to echo its value. This is described in the help at :h expr-option

So you would want to do: :echo &timeoutlen

Christian Brabandt
  • 25,820
  • 1
  • 52
  • 77
1

You could type :set {option}? to show the value of an option.

If you want to inspect where it was defined:

:verbose set timeoutlen?
LEI
  • 1,626
  • 9
  • 18