Home & End Keys, Mac OSX
Using Terminal.app on Mac OSX to connect to a Linux/*nix system and work in any text editor (such as Vim) is a bit of a hassle when you are used to the Home and End keys going to beginning or end of line on other systems.
Remap the keys in Terminal->Preferences->Settings->Keyboard to the following…
End: ctrl+[, [, 4, ~ it should look like this: \033[4~
Home: ctrl+[, [, 1, ~ it should look like this \033[1~