fish: Switch to hybrid bindings
This commit is contained in:
parent
dc810d23e9
commit
6c4d447427
2 changed files with 8 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
||||||
set -g fish_greeting
|
set -g fish_greeting
|
||||||
|
set -g fish_key_bindings hybrid_bindings
|
||||||
set -g fish_escape_delay_ms 300
|
set -g fish_escape_delay_ms 300
|
||||||
|
|
||||||
set -g fish_color_autosuggestion 303030
|
set -g fish_color_autosuggestion 303030
|
||||||
|
|
7
fish/functions/hybrid_bindings.fish
Normal file
7
fish/functions/hybrid_bindings.fish
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
function hybrid_bindings --description 'Vi-style bindings that inherit emacs-style bindings in all modes'
|
||||||
|
for mode in default insert visual
|
||||||
|
fish_default_key_bindings -M $mode
|
||||||
|
end
|
||||||
|
|
||||||
|
fish_vi_key_bindings --no-erase
|
||||||
|
end
|
Loading…
Add table
Add a link
Reference in a new issue