From 5c3e43bc0cd7ca2160967b99bbb635b20bed14dd Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Fri, 8 Nov 2019 10:47:04 +0100 Subject: [PATCH] vi mode: make return key in replace mode insert a newline Fixes #6298 [ci skip] --- 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 360a83f93..718205206 100644 --- a/share/functions/fish_vi_key_bindings.fish +++ b/share/functions/fish_vi_key_bindings.fish @@ -215,6 +215,7 @@ function fish_vi_key_bindings --description 'vi-like key bindings for fish' # bind -s --preset -m replace_one r repaint-mode bind -s --preset -M replace_one -m default '' delete-char self-insert backward-char repaint-mode + bind -s --preset -M replace_one -m default \r 'commandline -f delete-char; commandline -i \n; commandline -f backward-char; commandline -f repaint-mode' bind -s --preset -M replace_one -m default \e cancel repaint-mode #