make it easy to get the legacy hybrid key bindings

The changes related to issue #3068 removed most of the emacs bindings
from vi mode. However, since fish 2.4.0 was released several people have
pointed out that the directions for reinstating the legacy hybrid key
bindings don't work. This change fixes that and makes it easier to use
the legacy hybrid bindings.

Fixes #3556
This commit is contained in:
Kurtis Rader
2016-11-15 15:47:19 -08:00
parent 3e82be4ac2
commit e8a31a13a1
4 changed files with 29 additions and 7 deletions

View File

@@ -6,8 +6,7 @@ function fish_default_key_bindings -d "Default (Emacs-like) key bindings for fis
end
if not set -q argv[1]
# Clear earlier bindings, if any
bind --erase --all
bind --erase --all # clear earlier bindings, if any
if test "$fish_key_bindings" != "fish_default_key_bindings"
# Allow the user to set the variable universally
set -q fish_key_bindings