def create_view(self, buf):
        path = buf['path']
        utils.save_buf(buf)
        vb = self.get_vim_buf_by_path(path)
        if vb:
            return View(vb)

        vim.command(':edit! %s' % path)
        vb = self.get_vim_buf_by_path(path)
        if vb is None:
            msg.debug('vim buffer is none even though we tried to open it: %s' % path)
            return
        return View(vb)
dataset/ETHPy150Open Floobits/floobits-vim/plugin/floo/vim_handler.py/VimHandler.create_view/original