Steps to reproduce:
fish_vi_key_bindings
to ~/.config/fish/config.fish
.The key bindings work as expected when I open the shell without this line in my config, and instead call fish_vi_key_bindings
in the shell.
Try putting fish_vi_key_bindings to the 'fish_user_key_bindings' function instead of config.fish
That'll do it. Thanks for the help!
I think this should definitely be in the FAQ.
I have to come in this issue to found in http://fishshell.com/docs/current/commands.html#bind
Key bindings are not saved between sessions by default. To save custom keybindings, edit the fish_user_key_bindings function and insert the appropriate bind statements.
A helpfull FAQ would be :
How to start with vi mode ?
edit $HOME/.config/fish/functions/fish_user_key_bindings.fish
function fish_user_key_bindings
fish_vi_key_bindings
end
Most helpful comment
I think this should definitely be in the FAQ.
I have to come in this issue to found in http://fishshell.com/docs/current/commands.html#bind
A helpfull FAQ would be :
How to start with vi mode ?
edit $HOME/.config/fish/functions/fish_user_key_bindings.fish