From 021d4157ca5e5fcc6f505adffbfe392fe754e9d6 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Fri, 28 Aug 2020 20:45:33 +0200 Subject: [PATCH] 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] --- doc_src/index.rst | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/doc_src/index.rst b/doc_src/index.rst index c384022b1..863ef2f5a 100644 --- a/doc_src/index.rst +++ b/doc_src/index.rst @@ -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