3 ms·
The `ToggleNumber()` function may be shortened to :set invnumber There two kind of prefixes for `:set` variables: `no-` and `inv-`, the first one turns th
by dmytrish 11y ago
The `ToggleNumber()` function may be shortened to
:set invnumber
There two kind of prefixes for `:set` variables: `no-` and `inv-`, the first one turns the variable off or empties it, the second just toggles between states.
- edanm 11y agoCool trick. FYI, you can do the same with :set number!. Adding ! at the end of a variable will invert it. Adding ? at the end will echo its value.