This website requires JavaScript.
Explore
Help
Register
Sign In
github-mirror
/
fish-shell
Watch
2
Star
0
Fork
0
You've already forked fish-shell
mirror of
https://github.com/fish-shell/fish-shell.git
synced
2025-03-02 04:15:24 +08:00
Code
Issues
Actions
Packages
Projects
Releases
Wiki
Activity
fish-shell
/
share
/
functions
/
fish_vi_mode.fish
5 lines
101 B
Fish
Raw
Normal View
History
Unescape
Escape
Fix fish_vi_mode.fish
2014-08-24 16:40:49 +04:00
function
fish_vi_mode
Rework how the mode is reported in fish_vi_mode Add a new function fish_mode_prompt which (if it is defined) has its output prepended to the left prompt. Rather than replacing the prompt wholesale, make fish_vi_mode enable this function by setting a variable __fish_vi_mode. This enables vi mode to interoperate nicely with custom prompts. Users who want to change how the mode is reported can either redefine this function or erase it entirely. Fixes #1988.
2015-06-04 13:31:48 -07:00
# Turn on vi keybindings
Fix fish_vi_mode.fish
2014-08-24 16:40:49 +04:00
set
-g
fish_key_bindings
fish_vi_key_bindings
Add sourceable script file to enable vi mode
2013-12-31 16:17:03 +01:00
end
Reference in New Issue
Copy Permalink