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

33 lines
874 B
Fish
Raw Normal View History

2020-01-16 17:01:59 -06:00
#!/usr/bin/env fish
function fish_user_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
bind -M insert JK $vi_esc
bind -M insert jj $vi_esc
bind -M insert Jj $vi_esc
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-20 14:01:06 -06:00
bind -M insert \cs fzf-cd-widget
2020-01-22 17:25:47 -06:00
bind -M insert \ce end-of-line
bind -M insert \ca beginning-of-line
2020-01-20 14:01:06 -06:00
bind -M insert \cw forward-word
2020-07-09 17:40:10 -05:00
bind -M insert \ct tmuxswitcher
2020-03-17 12:37:01 -05:00
bind -M insert \cv edit_command_buffer
bind -M default \cv edit_command_buffer
bind -M insert \ee false
bind -M insert \ev false
bind -M default \ee false
bind -M default \ev false
2020-01-16 17:01:59 -06:00
end