Use emacs key bindings in insert mode

2 Points

Florian Beer Florian Beer

9 years ago

Im am used to pressing ctrl + a and ctrl + e to go to beginning and end of a line in bash, so I mapped those key bindings to be available in Vim's insert mode as well.

imap <C-a> <C-o>0
imap <C-e> <C-o>$
map <C-e> $
map <C-a> 0