MacVim is a text and source code editor for Mac that offers a GUI for Vim. It comes with extra features and supports Mac-based keyboard shortcuts, making it very handy to use. MacVim adds an interactive interface, like menus, for tasks that previously required commands or keyboard shortcuts. It’s like GVim on Linux.
Installing Homebrew
To install MacVim, we first need to get Homebrew.
Open Terminal (⌘ + SPACE, then type "Terminal").
Paste this into your Terminal (you need to have Xcode installed):
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Next, install MacVim using Homebrew:
brew install macvim
Add a shortcut to ~/Applications:
brew linkapps macvim
If you want MacVim to open whenever you type vim in the Terminal, use this command instead:
brew install macvim --override-system-vim
To check if everything is running fine, run:
brew doctor
Now you have MacVim installed! If you have any questions, feel free to leave a comment below.