If you use vim in the mac terminal follow the steps below to regain use of these vital keys.
- Open Terminal.
- Open Preferences.
- Select Settings.
- Select your desired theme.
- Select Keyboard.
- Double click each key in title above.
- For each key set Action to ‘send string to shell:’ and set string as below.
- Page Up:
- Page Down:
These will alter the key bindings not only in vim but in the terminal in general. If you want vim specific bindings another option is to use vim specific shortcuts. Personally, I prefer to use the above bindings and then in bash use ctrl-a for home and ctrl-e for end.
Did this tip help you? Let me know in the comments! [Credit]