vi mode: make return key in replace mode insert a newline

Fixes #6298

[ci skip]
This commit is contained in:
Johannes Altmanninger 2019-11-08 10:47:04 +01:00
parent 7f59a7e7cf
commit 5c3e43bc0c

View File

@ -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
#