34
6
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?
34
6
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?
41
This will reset the listchars option to the default:
set listchars&
See the options documentation for more info.
11
There are 3 primary ways to unset a variable. I will use the binary
command here for demonstration purposes. One of them should work.
set nobinary
set binary&
set binary!
Remember to reload the file you are working on for the values to apply again using :e
Handy to know, thanks. Also works for :set rightleft – aportr – 2014-09-12T01:59:46.920
will
unset listchars=
work? – gbri – 2011-07-18T16:20:06.6405There's no
unset
command. For toggleable options, you can doset nooption
(example:set paste
andset nopaste
), but listchars is not toggleable. If you actually want to set listchars to have no value, do:set listchars=
– Chris Acheson – 2011-07-18T16:35:57.957so
set listchars&
is the same asset listchars=
? – gbri – 2011-07-19T11:04:43.1271
set listchars&
sets it to the default setting that it started with, which iseol:$
– Chris Acheson – 2011-07-19T15:27:36.463