Go To System Preferences → Keyboard → Keyboard, select “Use all F1,F2,….”
cp mvim /usr/local/bin
brew install macvim --with-cscope --with-lua --HEAD
If you got:
error: There was a problem with the editor 'vi'.
Not committing merge; use 'git commit' to complete the merge.
Put this command to fix it:
git config --global core.editor /usr/bin/vim