[vim] Use tnoremap only when it's available

Fix #2357
This commit is contained in:
Junegunn Choi 2021-02-17 10:04:38 +09:00
parent 13f180a70c
commit bedf1cd357
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -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()