-1

How do I find out the value of an option? I tried:

:echo ignorecase
:echo g:ignorecase
:echo v:ignorecase

None of these work.

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

1 Answers1

4

To find out the value of an option, use either: set option? (e.g. add the questionmark to the option name) or use :echo &option

This is described at :h expr-option

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