eutils provides a sane/safe/standard way of mucking with shopts, so use it instead of local custom code
Created attachment 239313 [details, diff] vim.eclass.patch
Committed, thanks very much for the patch!