tags:

views:

74

answers:

1

Is there a simple way of finding out the current value of a specified Vim setting? If I want to know the current value of, say tabstop, I can run:

:set tabstop

without passing an argument, and Vim will tell me the current value. This is fine for many settings, but it is no good for those that are either true or false. For example, if I want to find out the current value of expandtab, running:

:set expandtab

will actually enable expandtab. I just want to find out if it is enabled or not.

This sort of does what I want:

:echo &l:expandtab

but it seems quite verbose. Is there a quicker way?

+9  A: 

Add a ? mark after the setting name and it will show the value

:set expandtab?
JaredPar
Too obvious in retrospect. Thanks for a speedy response!
nelstrom