#NEWLINE# def command( self , cmd ) : #NEWLINE# #INDENT# ' go to my window & execute command ' #NEWLINE# winnr = self . getwinnr ( ) #NEWLINE# if ( winnr != int ( vim . eval ( 'winnr()' ) ) ) : #NEWLINE# #INDENT# vim . command ( ( str ( winnr ) + 'wincmd w' ) ) #NEWLINE# #UNINDENT# vim . command ( str ( cmd ) )