diff options
-rw-r--r-- | doc_src/fish_vi_mode.txt | 2 | ||||
-rw-r--r-- | share/functions/fish_vi_mode.fish | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/doc_src/fish_vi_mode.txt b/doc_src/fish_vi_mode.txt index 3676dedd..d39697c8 100644 --- a/doc_src/fish_vi_mode.txt +++ b/doc_src/fish_vi_mode.txt @@ -7,4 +7,6 @@ fish_vi_mode \subsection fish_vi_mode-description Description +This function is deprecated. Please call `fish_vi_key_bindings directly` + `fish_vi_mode` enters a vi-like command editing mode. To always start in vi mode, add `fish_vi_mode` to your `config.fish` file. diff --git a/share/functions/fish_vi_mode.fish b/share/functions/fish_vi_mode.fish index 8c89a53e..29ddeb6c 100644 --- a/share/functions/fish_vi_mode.fish +++ b/share/functions/fish_vi_mode.fish @@ -1,4 +1,5 @@ function fish_vi_mode - # Turn on vi keybindings - set -g fish_key_bindings fish_vi_key_bindings + echo "This function is deprecated. Please call fish_vi_key_bindings directly" >&2 + # Turn on vi keybindings + set -g fish_key_bindings fish_vi_key_bindings end |