From 1a76bdf8914195ab26ebac7e49a3ed8752dd69bd Mon Sep 17 00:00:00 2001 From: Olivier Roques Date: Sun, 17 Jan 2021 14:39:40 +0100 Subject: [PATCH] [vim] Exit terminal mode before closing FZF window (#2326) Fix https://github.com/junegunn/fzf.vim/issues/1216 --- plugin/fzf.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 9ce9ab41..c94bb9ef 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -792,6 +792,8 @@ function! s:execute_term(dict, command, temps) abort call self.switch_back(1) else if bufnr('') == self.buf + " Exit terminal mode first (see neovim#13769) + call feedkeys("\\", 'n') " We use close instead of bd! since Vim does not close the split when " there's no other listed buffer (nvim +'set nobuflisted') close