Closed
Description
Fish Version:
fish, version 3.2.1
Operating System:
MacOS 10.15.7
Darwin MacBook-Pro.local 19.6.0 Darwin Kernel Version 19.6.0: Tue Jan 12 22:13:05 PST 2021; root:xnu-6153.141.16~1/RELEASE_X86_64 x86_64
Terminal:
iTerm2 build 3.4.4
xterm-256color
config.fish:
set fish_key_bindings fish_user_key_bindings
functions/fish_user_key_bindings.fish:
function fish_user_key_bindings
fish_vi_key_bindings
# map jk to Esc
bind -M insert jk "if commandline -P; commandline -f cancel; else; set fish_bind_mode default; commandline -f backward-char force-repaint; end"
end
Steps to reproduce:
- Install lazygit via Homebrew
$ brew install lazygit
- Run lazygit
$ lazygit
- Quit lazygit
Before running lazygit, all vi key bindings work as expected. But after running lazygit, some vi key bindings will not work:
cw
,dw
: just moving the cursor to the beginning of the next word, no characters will be deleted.jk
: just outputting thejk
rather than switching to normal mode. But if pressj
only, nothing will appear, it seems fish is still waiting the subsequent input.