summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2021-04-05 17:28:18 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2021-04-05 17:28:18 +0900
commit977e5effd943da428c123e483a7afbfcdcc8ecd9 (patch)
treed66008dc5943e62fe98c094da9a58e0d23bce10d
parent8b36a4cb19771f44e093b5b1341b9080d7255494 (diff)
[vim] Fix paste on MacVim
Close https://github.com/junegunn/fzf.vim/issues/1233
-rw-r--r--plugin/fzf.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim
index 26c35b8d..87481462 100644
--- a/plugin/fzf.vim
+++ b/plugin/fzf.vim
@@ -852,9 +852,6 @@ function! s:execute_term(dict, command, temps) abort
let term_opts.curwin = 1
endif
let fzf.buf = term_start([&shell, &shellcmdflag, command], term_opts)
- if exists('&termwinkey')
- call setbufvar(fzf.buf, '&termwinkey', '<c-z>')
- endif
if is_popup && exists('#TerminalWinOpen')
doautocmd <nomodeline> TerminalWinOpen
endif
@@ -863,6 +860,9 @@ function! s:execute_term(dict, command, temps) abort
endif
endif
tnoremap <buffer> <c-z> <nop>
+ if exists('&termwinkey') && (empty(&termwinkey) || &termwinkey =~? '<c-w>')
+ tnoremap <buffer> <c-w> <c-w>.
+ endif
finally
call s:dopopd()
endtry