From 2e339e49b85fd365e6e393222b8a29f9a99d1ed8 Mon Sep 17 00:00:00 2001 From: Oliver Schrenk Date: Mon, 30 Mar 2015 23:10:47 +0200 Subject: Support for vi insert mode in upcoming fish 2.2.0 --- shell/key-bindings.fish | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'shell') diff --git a/shell/key-bindings.fish b/shell/key-bindings.fish index ce1eea75..3a86decb 100644 --- a/shell/key-bindings.fish +++ b/shell/key-bindings.fish @@ -76,5 +76,11 @@ function fzf_key_bindings bind \ct '__fzf_ctrl_t' bind \cr '__fzf_ctrl_r' bind \ec '__fzf_alt_c' + + if bind -M insert > /dev/null 2>&1 + bind -M insert \ct '__fzf_ctrl_t' + bind -M insert \cr '__fzf_ctrl_r' + bind -M insert \ec '__fzf_alt_c' + end end -- cgit v1.2.3