I can see that Ctrl+left/right jumps to the beginning/end of line. How to change this to Cmd+left/right arrow
Follow the tutorial you listed above for setting up your key preferences in iterm2.
To jump between words and start/end of lines in iTerm2 pick one of the two solutions below.
If you don't want to use the "Natural Text Editing" preset mentioned above, you can map the keys you need manually:
[+]
iconMove cursor one word left
0x1b 0x62
Move cursor one word right
0x1b 0x66
Move cursor to beginning of line
0x01
Move cursor to end of line
0x05
Delete word
0x1b 0x08
Delete line
0x15
Undo
0x1f
Don't forget to remove the previous bindings: