From bedf1cd35726c985478e1609974b5bfe4584f36e Mon Sep 17 00:00:00 2001 From: Junegunn Choi <junegunn.c@gmail.com> Date: Wed, 17 Feb 2021 10:04:38 +0900 Subject: [PATCH] [vim] Use tnoremap only when it's available Fix #2357 --- plugin/fzf.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 1069af87..a2db07cd 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -766,7 +766,9 @@ endfunction noremap <silent> <Plug>(fzf-normal) <Nop> noremap! <silent> <Plug>(fzf-normal) <Nop> -tnoremap <silent> <expr> <Plug>(fzf-normal) &filetype == 'fzf' ? "\<C-L>" : "\<C-\>\<C-n>" +if exists(':tnoremap') + tnoremap <silent> <expr> <Plug>(fzf-normal) &filetype == 'fzf' ? "\<C-L>" : "\<C-\>\<C-n>" +endif function! s:execute_term(dict, command, temps) abort let winrest = winrestcmd() -- GitLab