Cygwin + zsh: Home and End keys not working
With the help of the mintty mailing list (https://groups.google.com/forum/?fromgroups#!topic/mintty-discuss/v4b86DBNI80) I found the answer. The lines that I need to add to .zshrc are
bindkey '\e[H' beginning-of-line
bindkey '\e[F' end-of-line
Here my complete list of additional useful bindings (corrected to remove colons from commands).
# ctrl-left/right
bindkey "\e[1;5C" forward-word
bindkey "\e[1;5D" backward-word
# ctrl-backspace/delete
bindkey "\C-_" backward-kill-word
bindkey "\e[3;5~" kill-word
# alt-backspace
bindkey "\e\d" undo
bindkey "\e[3~" delete-char
bindkey '\e[H' beginning-of-line
bindkey '\e[F' end-of-line