[vim] Use tnoremap only when it's available

Fix #2357
pull/2364/head
Junegunn Choi 3 years ago
parent 13f180a70c
commit bedf1cd357
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

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

Loading…
Cancel
Save