This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/common/fish/key-bindings.fish

28 lines
823 B
Fish
Raw Normal View History

2020-01-16 17:01:59 -06:00
function fish_user_key_bindings
test -f $HOME/.fzf/shell/key-bindings.fish && source $HOME/.fzf/shell/key-bindings.fish
2021-11-03 12:01:43 -05:00
type -q fzf_key_bindings && fzf_key_bindings
2020-01-22 17:25:47 -06:00
fish_vi_key_bindings insert --no-erase
2020-01-16 17:01:59 -06:00
set vi_esc "if commandline -P; commandline -f cancel; else; set fish_bind_mode default; commandline -f backward-char force-repaint; end"
2020-01-20 13:09:31 -06:00
2020-01-16 17:01:59 -06:00
bind -M insert jk $vi_esc
bind -M insert jK $vi_esc
2020-01-16 17:01:59 -06:00
bind -M insert Jk $vi_esc
bind -M insert JK $vi_esc
bind -M insert jj $vi_esc
bind -M insert jJ $vi_esc
2020-01-16 17:01:59 -06:00
bind -M insert Jj $vi_esc
bind -M insert JJ $vi_esc
2020-01-17 03:02:53 -06:00
bind -M insert \cp up-or-search
bind -M insert \cn down-or-search
2020-01-22 17:25:47 -06:00
bind -M insert \ce end-of-line
bind -M insert \ca beginning-of-line
2020-03-17 12:37:01 -05:00
bind -M insert \cv edit_command_buffer
bind -M default \cv edit_command_buffer
2021-11-11 13:08:37 -06:00
bind -M insert \cs tmuxswitcher
2020-01-16 17:01:59 -06:00
end