This website requires JavaScript.
Explore
Help
Sign In
Mirrors
/
fish-shell
Watch
2
Star
0
Fork
You've already forked fish-shell
0
mirror of
https://github.com/fish-shell/fish-shell
synced
2024-12-26 04:43:10 +00:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
f5241da836
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 12:40:49 +00: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 20:31:48 +00:00
# Turn on vi keybindings
Fix fish_vi_mode.fish
2014-08-24 12:40:49 +00:00
set
-g
fish_key_bindings
fish_vi_key_bindings
Add sourceable script file to enable vi mode
2013-12-31 15:17:03 +00:00
end
Reference in a new issue
Copy permalink