def vim_choice(prompt, default, choices):
    default = choices.index(default) + 1
    choices_str = '\n'.join([choice % '&%s' for choice in choices])
    try:
        choice = int(vim.eval('confirm("%s", "%s", %s)' % (prompt, choices_str, default)))
    except KeyboardInterrupt:
        return None
    if choice == 0:
        return None
    return choices[choice - 1]
dataset/ETHPy150Open Floobits/floobits-vim/plugin/floo/editor.py/vim_choice/swapped operands of `%`