mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-15 23:22:53 +08:00
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:
parent
f88d7dd312
commit
021d4157ca
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user