tpope / vim-vinegar

vinegar.vim: Combine with netrw to create a delicious salad dressing
https://www.vim.org/scripts/script.php?script_id=5671
2.22k stars 87 forks source link

can't disable grouping by suffix #121

Closed bart9h closed 3 years ago

bart9h commented 3 years ago

When I press S in the netrw window to edit the sorting sequence, and replace the value with just *, it does nothing. If I press S again the old default value is shown.

If I disable vinegar, it works.

tpope commented 3 years ago

Vinegar took over maintaining this option in #94 (discussion in #71). I hadn't considered that it would prevent manual override. @kiryph thoughts? Your proposed OptionSet solution is enticing. v:option_old can be used to derive if the sort sequence has been manually overridden, and if so, bail.