MacVim -- how to make Ctrl+A go to beginning of line, Ctrl+E to the end of the line I'm trying to switch to MacVim as my main editor, and I'm liking it so far, except for one issue:

I got really used to the Mac shortcuts control-A to go to the beginning of a line, and control-E to go to the end of a line.

However, these two don't work in MacVim (control-A does something weird -- it seems to increase the last number in a line by 1 or something, and control-E seems to scroll down the screen by one line).

Any way to make these two shortcuts go to the beginning of a line / end of a line respectively instead?
Add the following to .vimrc or .gvimrc:

:" Map Ctrl-A -&gt; Start of line, Ctrl-E -&gt; End of line
:map &lt;C-a&gt; &lt;Home&gt;
:map &lt;C-e&gt; &lt;End&gt;