def __init__(self, nvim):
self.setup(nvim)<EOL>self.module = imp.new_module('<STR_LIT:__main__>')<EOL>nvim.script_context = self.module<EOL>exec('<STR_LIT>', self.module.__dict__)<EOL>self.legacy_vim = LegacyVim.from_nvim(nvim)<EOL>sys.modules['<STR_LIT>'] = self.legacy_vim<EOL>nvim.command(<EOL>'<STR_LIT>'<EOL>.format(nvim.channel_id), async_=True)<EOL>nvim.command('<STR_LIT>'<EOL>.format(nvim.channel_id), async_=True)<EOL>
Initialize the legacy python-vim environment.