Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I am using vim (in a terminal), how can I get a list/display of what I have set?

For example, if during a vim session I have done :set spell, :set wrap, and :set linebreak - is there a way to get a list of "spell, wrap, linebreak"?


share|improve this question
up vote 3 down vote accepted

There are a couple of commands related to this.

The easiest way would be to just call:


This shows you all options with non-default values. From the vim documentation:

:se[t]  Show all options that differ from their default value.

Here's a part of the rest related to set and your current environment:

  • :set all lists all options, including defaults
  • :setglobal lists all global option values
  • :setlocal lists all local option values
  • :set termcap lists all terminal options
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.