MacVim -- how to make Ctrl+A go to beginning of line, Ctrl+E to the end of the line
Solution 1:
Add the following to .vimrc
or .gvimrc
:
:" Map Ctrl-A -> Start of line, Ctrl-E -> End of line
:map <C-a> <Home>
:map <C-e> <End>
Solution 2:
Those are actually emacs shortcuts that OSX is using, so you're asking how to emulate emacs key bindings in vim, which is a little unintuitive.
Id highly suggest getting used to either ^ to go to the beginning of a line, or I (shift-i) to go to the beginning of the line and switch to insert mode.