I don't use mac, but you might want to use noremap instead of map, in case you ever want to map <Home> or <End> somewhere else. In addition, you might want to use imap (or inoremap) in addition so that the hotkeys work in insert mode.
–
JackJul 28 at 21:45