def open_file(filename):
    current_buffer = vim.eval('expand("%:p")')
    if current_buffer != filename:
        vim.command(':silent! edit! %s | :silent! :filetype detect' % filename)
dataset/ETHPy150Open Floobits/floobits-vim/plugin/floo/editor.py/open_file/original