From 32948b8dc62c0c4b714e4b2aa5b81d7ade921fd1 Mon Sep 17 00:00:00 2001 From: Sascha Date: Wed, 28 May 2014 19:40:39 +0200 Subject: [PATCH] Provide more useful insert mode mappings --- share/functions/fish_vi_key_bindings.fish | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/share/functions/fish_vi_key_bindings.fish b/share/functions/fish_vi_key_bindings.fish index 11139e11c..4c72bc85d 100644 --- a/share/functions/fish_vi_key_bindings.fish +++ b/share/functions/fish_vi_key_bindings.fish @@ -181,6 +181,13 @@ function fish_vi_key_bindings --description 'vi-like key bindings for fish' bind -M insert -k right forward-char bind -M insert -k left backward-char + # useful insert mode mappings + bind -M insert \ch backward-delete-char + bind -M insert \cw backward-kill-word + bind -M insert \cu backward-kill-line + bind -M insert \cp history-search-backward + bind -M insert \cn history-search-forward + bind -M insert -m default \cc backward-char force-repaint bind -M insert -m default \e backward-char force-repaint