mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-08 10:51:15 -03:00
Correct Emacs bindings in vi insert mode
The original instruction does not actually enable Emacs key bindings in Vi mode. This fixes it.
This commit is contained in:
committed by
ridiculousfish
parent
eb86bf23e8
commit
ed212c631c
@@ -1548,12 +1548,12 @@ It is also possible to add all emacs-mode bindings to vi-mode by using something
|
||||
|
||||
|
||||
function fish_user_key_bindings
|
||||
# Execute this once per mode that emacs bindings should be used in
|
||||
fish_default_key_bindings -M insert
|
||||
# Without an argument, fish_vi_key_bindings will default to
|
||||
# resetting all bindings.
|
||||
# The argument specifies the initial mode (insert, "default" or visual).
|
||||
fish_vi_key_bindings insert
|
||||
# Execute this once per mode that emacs bindings should be used in
|
||||
fish_default_key_bindings -M insert
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user