function vi_key_bindings
    fish_vi_key_bindings
    bind \cl clear 'commandline -f repaint'
    bind -M insert \cl clear 'commandline -f repaint'
end

function vi_key_bindings
    fish_vi_key_bindings

    bind -M insert \ca beginning-of-line
    bind -M insert \ce end-of-line
    bind -M insert \cf accept-autosuggestion
end

Update fish 2.4.0 vi insert mode bindings
[fish] Update fish 2.4.0 vi insert mode bindings

vially/dotconfig