Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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"?

Thanks

share|improve this question

1 Answer 1

up vote 3 down vote accepted

There are a couple of commands related to this.

The easiest way would be to just call:

:set

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

 
discard

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.