Skip to content
Myr

[vim] Use tnoremap only when it's available

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fix #2357

authored by Junegunn Choi · committed by Junegunn Choi · parent 13f180a · Browse files · 1 file+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:plugin/fzf.vim+3 added-1 removed
764 unmodified lines
765endfunction766767noremap <silent> <Plug>(fzf-normal) <Nop>768noremap! <silent> <Plug>(fzf-normal) <Nop>769if exists(':tnoremap')769tnoremap <silent> <expr> <Plug>(fzf-normal) &filetype == 'fzf' ? "\<C-L>" : "\<C-\>\<C-n>"770 tnoremap <silent> <expr> <Plug>(fzf-normal) &filetype == 'fzf' ? "\<C-L>" : "\<C-\>\<C-n>"771endif772773function! s:execute_term(dict, command, temps) abort774 let winrest = winrestcmd()775 let pbuf = bufnr('')
217 unmodified lines