#NEWLINE# def make_window( direction = '' , vsplit = False , size = 0 , buffer_name = '' , autocmd = False ) : #NEWLINE# #INDENT# vim . command ( 'silent {} {} {}{} {}' . format ( ( '' if autocmd else 'noautocmd' ) , direction , ( str ( size ) if ( size > 0 ) else '' ) , ( 'vnew' if vsplit else 'new' ) , misc . escape ( ' ' , buffer_name ) ) ) #NEWLINE# return vim . current . window