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.
This commit is contained in:
Fabian Homborg 2016-04-12 20:41:35 +02:00
parent f5241da836
commit ba5a22e2ce
2 changed files with 5 additions and 2 deletions

View file

@ -7,4 +7,6 @@ fish_vi_mode
\subsection fish_vi_mode-description Description \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. `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.

View file

@ -1,4 +1,5 @@
function fish_vi_mode function fish_vi_mode
# Turn on vi keybindings echo "This function is deprecated. Please call fish_vi_key_bindings directly" >&2
set -g fish_key_bindings fish_vi_key_bindings # Turn on vi keybindings
set -g fish_key_bindings fish_vi_key_bindings
end end