[vim] Set termwinkey to allow CTRL-W

Fix https://github.com/junegunn/fzf.vim/issues/1176
This commit is contained in:
Junegunn Choi 2020-11-15 21:26:09 +09:00
parent 7bd99a22ee
commit 8b71fea5dc
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -836,6 +836,7 @@ 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', '<c-z>')
if is_popup && exists('#TerminalWinOpen')
doautocmd <nomodeline> TerminalWinOpen
endif