def command(self, cmd):
        winnr = self.getwinnr()
        if winnr != int(vim.eval("winnr()")):
            vim.command(str(winnr) + 'wincmd w')
        vim.command(str(cmd))
go to my window & execute command
dataset/ETHPy150Open joonty/vim-do/autoload/python/window.py/Window.command