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

link|improve this question

feedback

1 Answer

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
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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