I will sometimes use vim commands like ':set lbr' or ':set spell'. But how do I turn them off after they've been activated?

link|improve this question
feedback

4 Answers

up vote 3 down vote accepted

You can prepend no to boolean options to turn them off.

:set nolbr

You can also append ! to boolean options to toggle them.

:set lbr!

You might combine this with appending a ? to display the current value after toggling:

:set lbr! lbr?
link|improve this answer
Great, thank you. – zedwarth Jan 30 '11 at 3:07
Great suggestion for displaying the current value after toggling... – Neg_EV Feb 8 '11 at 17:29
feedback

Try

:set nolbr

or

:set nospell

instead.

link|improve this answer
feedback

try

:set no lbr

or

:set no spell

link|improve this answer
1  
It returns E518: Unknown option: no – zedwarth Jan 30 '11 at 2:48
feedback

Do them as one word,

:set nolbr

and :set nospell.

You can also toggle with an exclamation point:

:set lbr!

will turn it on if it's off, and off it's on.

See :help :set for even more 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.