From 1193a76114572c036112531aa34808241e83d580 Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Tue, 9 May 2017 22:42:38 +0530 Subject: [PATCH] fish: Add \ee edit_command_buffer binding in insert mode --- .config/fish/functions/fish_user_key_bindings.fish | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.config/fish/functions/fish_user_key_bindings.fish b/.config/fish/functions/fish_user_key_bindings.fish index da1aa73e..a81f59d2 100644 --- a/.config/fish/functions/fish_user_key_bindings.fish +++ b/.config/fish/functions/fish_user_key_bindings.fish @@ -2,14 +2,18 @@ function fish_user_key_bindings fish_vi_key_bindings set fish_escape_delay_ms 10 + ## Useful for rsync when folders are completed with fzf. + bind \cw trim_trailing_slashes + + ## As of fish 2.5, Alt-f binding is missing in vi-mode. + bind -M insert \ef forward-word + + bind -M insert \ee edit_command_buffer + ## fzf if type -pq fzf source $fish_config_path/fzf.fish end - # bind \el downcase-word # For Emacs bindings only. - bind \cw trim_trailing_slashes - - ## As of fish 2.5, Alt-f binding is missing in vi-mode. - bind -M insert \ef forward-word + # bind \el downcase-word # For Emacs bindings only, load after fzf. end