aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/fish_vi_key_bindings.fish
diff options
context:
space:
mode:
authorGravatar Jared Grubb <jaredgrubb@gmail.com>2014-10-19 11:55:58 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-10-31 22:17:17 -0700
commitd9d9fa512dec6930e47f2b53cfb2948653f25720 (patch)
treed6f00f445b15423e8a4529d32621d4fb5f608c8e /share/functions/fish_vi_key_bindings.fish
parent84372ba79dbcdbde8e2e0ed7eeaddbc83a51b30d (diff)
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.
Diffstat (limited to 'share/functions/fish_vi_key_bindings.fish')
-rw-r--r--share/functions/fish_vi_key_bindings.fish1
1 files changed, 1 insertions, 0 deletions
diff --git a/share/functions/fish_vi_key_bindings.fish b/share/functions/fish_vi_key_bindings.fish
index 15631b9d..9ea4f098 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