def _SetUpLoadedBuffer(command, filename, fix, position, watch):
 if (command == u'split'):
  vim.current.window.options[u'winfixheight'] = fix
 if (command == u'vsplit'):
  vim.current.window.options[u'winfixwidth'] = fix
 if watch:
  vim.current.buffer.options[u'autoread'] = True
  vim.command(u"exec 'au BufEnter <buffer> :silent! checktime {0}'".format(filename))
 if (position == u'end'):
  vim.command(u'silent! normal G zz')

def _SetUpLoadedBuffer ( command , filename , fix , position , watch ) : if ( command == u'split' ) : vim . current . window . options [ u'winfixheight' ] = fix if ( command == u'vsplit' ) : vim . current . window . options [ u'winfixwidth' ] = fix if watch : vim . current . buffer . options [ u'autoread' ] = True vim . command ( u"exec 'au BufEnter <buffer> :silent! checktime {0}'" . format ( filename ) ) if ( position == u'end' ) : vim . command ( u'silent! normal G zz' )
after opening a buffer .