summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-04-26 02:17:46 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-04-26 02:17:46 +0900
commitc8f208b96b9302705ebb5e346d032e835d130da6 (patch)
tree728b1031b68dd39a2655616caba04b96d1515f1a /shell
parent5d9107fd15a5bca3973f8206884ddfa66d47b923 (diff)
parent2e339e49b85fd365e6e393222b8a29f9a99d1ed8 (diff)
Merge pull request #171 from oschrenk/vi-insert-mode-key-bindings-fish
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 36beee18..b86a4ef3 100644
--- a/shell/key-bindings.fish
+++ b/shell/key-bindings.fish
@@ -57,5 +57,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