diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 763747c3..1069af87 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -764,6 +764,10 @@ function! s:split(dict) endtry endfunction +noremap (fzf-normal) +noremap! (fzf-normal) +tnoremap (fzf-normal) &filetype == 'fzf' ? "\" : "\\" + function! s:execute_term(dict, command, temps) abort let winrest = winrestcmd() let pbuf = bufnr('') @@ -793,7 +797,7 @@ function! s:execute_term(dict, command, temps) abort else if bufnr('') == self.buf " Exit terminal mode first (see neovim#13769) - call feedkeys("\\", 'n') + call feedkeys("\(fzf-normal)") " We use close instead of bd! since Vim does not close the split when " there's no other listed buffer (nvim +'set nobuflisted') close