zap-zsh/vim

Allow for emacs style keybindings in insert mode (Ctrl-a & Ctrl-e)

Closed this issue · 1 comments

Howdy!

I'd love if there was an option in this (or some snippet I can add to my config) to enable support for ctrl-e & ctrl-a keybindings. I know Esc 0 would work but it would be nice to be able to do this. Thanks for the awesome work

Hi @rkabrick ,
i created a PR for this issue because I wanted the same feature for myself 😄 If you don‘t want to wait for the PR you can also add the lines to your zshrc:

bindkey -M viins '^A' beginning-of-line 
bindkey -M viins '^E' end-of-line