diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 247df973..47051157 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -838,7 +838,9 @@ function! s:execute_term(dict, command, temps) abort let term_opts.curwin = 1 endif let fzf.buf = term_start([&shell, &shellcmdflag, command], term_opts) - call setbufvar(fzf.buf, '&termwinkey', '') + if exists('&termwinkey') + call setbufvar(fzf.buf, '&termwinkey', '') + endif if is_popup && exists('#TerminalWinOpen') doautocmd TerminalWinOpen endif