Alt (Options) shortcuts not working in MacOS vim

If you use MacOS with iterm2 terminal and if you use vim or neovim within iterm2, you may have noticed that your options or alt keybindings are not working as expected.

For example, I was using NvChad with NeoVIM and none of the shortcuts that uses Options/Alt where working for me.

This is how you can fix it

Profiles -> Edit the Profile -> Keys -> Left Option Key -> Esc+
You can do the same for Right Option Key as well, if you would prefer