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
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
I don't know why I ever wanted to install it on my machine.
Well, it was already there so yeah, why did you install another one?
Please can someone help me unistall it?
We certainly can… if you tell us how you installed it as the exact method will be different if you installed it from source, via MacPorts, via homebrew, or any another method. If you even installed it, that is.
FWIW, Vim has always been installed at /usr/bin/vim
on Mac OS X since forever. If $ ls -l /usr/bin/vim
ends with /usr/bin/vim
you can stop worrying now as your system is pretty much OK. If not, show us the whole line so that we can go further.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.