From 635a1e9dd24dc64077bd1d7e02bf998b41984974 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Tue, 12 Apr 2016 21:40:14 +0200 Subject: [PATCH] Remove the default self-insert binding in vi-default mode Fixes #2832. --- share/functions/fish_vi_key_bindings.fish | 2 ++ 1 file changed, 2 insertions(+) diff --git a/share/functions/fish_vi_key_bindings.fish b/share/functions/fish_vi_key_bindings.fish index 75be6644b..f63956677 100644 --- a/share/functions/fish_vi_key_bindings.fish +++ b/share/functions/fish_vi_key_bindings.fish @@ -19,6 +19,8 @@ function fish_vi_key_bindings --description 'vi-like key bindings for fish' fish_default_key_bindings -M insert fish_default_key_bindings -M default + # Remove the default self-insert bindings in default mode + bind -e "" -M default # Add way to kill current command line while in insert mode. bind -M insert \cc 'commandline ""' # Add a way to switch from insert to normal (command) mode.