Search code examples
macosvimmacos-high-sierra

Unistall Vim Mac Os High Sierra 10.13.6


I don't know why I ever wanted to install it on my machine. Please can someone help me unistall it? Haven't found anywhere tips or resources on how to do that.

I have Homebrew installed and I have already tried

brew uninstall --force vim

and

brew uninstall macvim

Solution

  • brew installs software in /usr/local/bin/.

    In /usr/bin (since OS X El Capitan) you can only find applications that have been shipped with macOS itself, so /usr/bin/vim is part of the system and can't be uninstalled.

    Tools like brew or macports should use /usr/local or /opt to prefix their installation paths.

    The whole /usr directory except /usr/local is under Integrity Protection, which means that you cannot change its content even with sudo.

    [...]System Integrity Protection is designed to allow modification of these protected parts only by processes that are signed by Apple and have special entitlements to write to system files, such as Apple software updates and Apple installers.[...]

    System Integrity Protection includes protection for these parts of the system:

    • /System
    • /usr
    • /bin
    • /sbin
    • Apps that are pre-installed with OS X

    Paths and apps that third-party apps and installers can continue to write to include:

    • /Applications
    • /Library
    • /usr/local