mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-19 16:52:46 +08:00
vi mode: make return key in replace mode insert a newline
Fixes #6298 [ci skip]
This commit is contained in:
parent
7f59a7e7cf
commit
5c3e43bc0c
|
@ -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
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue
Block a user