Skip to content
Myr

[vim] Bind Ctrl-J in Vim terminal to fix enter key

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

Temporary workaround for non-Windows environment Reference: https://github.com/vim/vim/issues/1998 https://github.com/junegunn/fzf/pull/1019#issuecomment-327008348

authored by Jan Edmund Lazo · committed by Junegunn Choi · parent fd6bc73 · Browse files · 1 file+3 added−0 removed
This commit

State

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

Trailers

  • Reference:
  • https: //github.com/vim/vim/issues/1998
  • https: //github.com/junegunn/fzf/pull/1019#issuecomment-327008348

Diff stats

1 file+3 added−0 removed

  • other:+3 added−0 removed

1 file+3 added−0 removed

modified:plugin/fzf.vim+3 added
398 unmodified lines
399 let height = s:calc_size(&lines, dict.down, dict)400 let optstr .= ' --height='.height401 elseif use_term402 let optstr .= ' --no-height'403 if !has('nvim') && !s:is_win404 let optstr .= ' --bind ctrl-j:accept'405 endif406 endif407 let command = prefix.(use_tmux ? s:fzf_tmux(dict) : fzf_exec).' '.optstr.' > '.temps.result408409 if use_term
391 unmodified lines