Passing joined python list to the confirm dialog function through vim.command feature in python code, I encounter these errors :
Error detected while processing :
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "<string>", line 16, in PyExecReplace
File "<string>", line 144, in <module>
File "<string>", line 10, in question
vim.error: Vim(let):E121: Undefined variable: Today
_____________
Here is my source code :
class IntervalDating(): # Dating considerations
def __init__(self):
self.datingChoice = [ 'Today', 'Yesterday', 'ThisWeek' ]
def question(self):
someStr = "\n&".join(self.datingChoice)
print someStr
vim.command('let cce = confirm("Period choice:", ' + someStr + ', 1)')
Thank you ZyX it works perfectly ! :)