Function for edit() when in Neovim buffer.