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
set listchars=tab:>-,trail:_

I tried to unset the above command this way:

unset listchars=tab:>-,trail:_

But only get:

E492: Not an editor command: unset listchars=tab:>-,trail:_

What's the right way to do this?

share|improve this question

This will reset the listchars option to the default:

set listchars&

See the options documentation for more info.

share|improve this answer
will unset listchars= work? – gbri Jul 18 '11 at 16:20
There's no unset command. For toggleable options, you can do set nooption (example: set paste and set nopaste), but listchars is not toggleable. If you actually want to set listchars to have no value, do: set listchars= – Chris Acheson Jul 18 '11 at 16:35
so set listchars& is the same as set listchars=? – gbri Jul 19 '11 at 11:04
set listchars& sets it to the default setting that it started with, which is eol:$ – Chris Acheson Jul 19 '11 at 15:27
Handy to know, thanks. Also works for :set rightleft – jabolotai Sep 12 '14 at 1:59

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.