From d9d9fa512dec6930e47f2b53cfb2948653f25720 Mon Sep 17 00:00:00 2001 From: Jared Grubb Date: Sun, 19 Oct 2014 11:55:58 -0700 Subject: [PATCH] vi bindings: add CTRL-C handler in default mode There is no CTRL-C handler for the default mode in the vi bindings. This makes it difficult to say "never mind" and start a new command line like you can do in bash's vi mode. There were CTRL-C handlers for insert and visual modes that go back to default mode, but nothing happens in default mode. I copy-pasted the CTRL-C handler from the default key bindings file. --- share/functions/fish_vi_key_bindings.fish | 1 + 1 file changed, 1 insertion(+) diff --git a/share/functions/fish_vi_key_bindings.fish b/share/functions/fish_vi_key_bindings.fish index 15631b9d7..9ea4f0986 100644 --- a/share/functions/fish_vi_key_bindings.fish +++ b/share/functions/fish_vi_key_bindings.fish @@ -17,6 +17,7 @@ function fish_vi_key_bindings --description 'vi-like key bindings for fish' # bind \cd exit + bind \cc 'commandline ""' bind h backward-char bind l forward-char bind \e\[C forward-char