def set_local(view, name, value):
    try:
        opt = VI_OPTIONS[name]
        if not value and opt.negatable:
            opt.action(view, name, '1', opt)
            return
        opt.action(view, name, value, opt)
    except KeyError as e:
        if name.startswith('no'):
            try:
                opt = VI_OPTIONS[name[2:]]
                if opt.negatable:
                    opt.action(view, name[2:], '0', opt)
                return
            except __HOLE__:
                pass
        raise
dataset/ETHPy150Open guillermooo/Vintageous/vi/settings.py/set_local