vim Mac OS X install with gui-support

Building Vim on Mac OS X is a waste of time.

Step 1: Download the appropriate MacVim build from here.

Step 2: Put MacVim.app into the /Applications/ directory.

Step 3: Put the bundled mvim script somewhere in your PATH.

Done.

To run MacVim in your shell:

$ mvim -v filename

To run MacVim from your shell:

$ mvim filename

Building Vim with GUI on macOS using Homebrew:

  1. brew edit vim.
  2. Add a new line with option for GUI:

    option "enable-gui", "Enable GUI mode"
    
  3. Change from no to yes in the following line:

    opts << "--enable-gui=no"
    
  4. Install or re-install vim:

    brew reinstall vim --enable-gui
    

Troubleshooting:

  • If you've errors related to Python 3, see: vim's GH-2754.
  • Checkout new Homebrew PR at GH-25785 with above patch.

Tags:

Macos

Vim

Macvim