Fix hybrid binding instructions

This needs to have the vi-bindings take precedence, so they need to be
executed *last*.

It just needs to tell them that they shouldn't erase all the bindings.

[ci skip]
This commit is contained in:
Fabian Homborg 2020-08-28 20:45:33 +02:00
parent f88d7dd312
commit 021d4157ca

View File

@ -1548,12 +1548,14 @@ It is also possible to add all emacs-mode bindings to vi-mode by using something
function fish_user_key_bindings
# 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
# Then execute the vi-bindings so they take precedence when there's a conflict.
# Without --no-erase fish_vi_key_bindings will default to
# resetting all bindings.
# The argument specifies the initial mode (insert, "default" or visual).
fish_vi_key_bindings --no-erase insert
end