diff options
author | Fabian Homborg <FHomborg@gmail.com> | 2016-04-12 20:41:35 +0200 |
---|---|---|
committer | Fabian Homborg <FHomborg@gmail.com> | 2016-04-26 15:21:15 +0200 |
commit | ba5a22e2ce3b84eda1f3e03f8089643971d0f742 (patch) | |
tree | dea175789ef9583040a18f4a53d50cfa4f06f3b8 | |
parent | f5241da836213b8ee05d4946e4884be2a6714658 (diff) |
Deprecate fish_vi_mode
This was never mentioned in the documentation as the way to switch to
vi-mode, and now does nothing of value anymore.
-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 |