summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorOliver Schrenk <oliver.schrenk@gmail.com>2015-03-30 23:10:47 +0200
committerOliver Schrenk <oliver.schrenk@gmail.com>2015-04-25 19:12:11 +0200
commit2e339e49b85fd365e6e393222b8a29f9a99d1ed8 (patch)
treeb25d34dddaf675d8da300ab82c950f240825c7eb /shell
parent1c65139888f7dd971d93a2c1210cd634e1ef12f4 (diff)
Support for vi insert mode in upcoming fish 2.2.0
Diffstat (limited to 'shell')
-rw-r--r--shell/key-bindings.fish6
1 files changed, 6 insertions, 0 deletions
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