Making home/end keys behave sane in OSX terminal

How to make fn-left to behave as "go to beginning of line" and fn-right as "go to end of line" on MacBook Pro. Same for fn-up as PgUp and fn-down as PgDown. I'm still looking how to make it work in vim.

Thank you for your interest!

We will contact you as soon as possible.

Send us a message

Oops, something went wrong
Please try again or contact us by email at