FROM: http://lfod.us/dotfiles/zshrc

# Make HOME and END work reasonably
case $TERM in
    xterm*)
	bindkey "^[[F" end-of-line
	bindkey "^[[H" beginning-of-line 
	;;
esac

bindkey '\e[1~' beginning-of-line       # Home
bindkey '\e[4~' end-of-line             # End
bindkey '\e[3~' delete-char             # Del
bindkey '\e[2~' overwrite-mode          # Insert 
bindkey -v