He preocupante la fusión de varios versión de vim
en mi máquina. He instalado correctamente vim
a través de Homebrew. Aquí está la salida de la ejecución brew info vim
:
vim: stable 8.1.1550 (bottled), HEAD
Vi 'workalike' with many additional features
https://www.vim.org/
Conflicts with:
ex-vi (because vim and ex-vi both install bin/ex and bin/view)
macvim (because vim and macvim both install vi* binaries)
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/vim.rb
==> Dependencies
Required: gettext ✔, lua ✔, perl ✔, python ✔, ruby ✔
==> Options
--HEAD
Install HEAD version
==> Analytics
install: 89,945 (30 days), 222,053 (90 days), 835,730 (365 days)
install_on_request: 82,933 (30 days), 204,131 (90 days), 747,520 (365 days)
build_error: 0 (30 days)
Sin embargo al escribir vim --version
, me sale:
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Feb 22 2019 19:03:04)
Included patches: 1-503, 505-680, 682-1283
Compiled by root@apple.com
Parece que hay 2 versiones instalado en mi máquina y la instaló con Homebrew no es la de por defecto. ¿Cómo puedo hacer es la de por defecto?
Aquí el resultado de ejecutar varios comandos para la depuración:
-
type -a vim
:vim is /usr/bin/
-
echo $PATH
:/Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/opt/X11/bin
-
brew uninstall ex-vi macvim
:Error: No such keg: /usr/local/Cellar/ex-vi
-
brew list
:aom leptonica perl arpack libass pixman autoconf libbluray pkg-config cairo libcerf plotutils cmake libde265 portaudio eigen libevent pstoedit epstool libffi pyenv ffmpeg libheif pyenv-virtualenv fftw libmpc pyqt fig2dev libogg python flac libomp python@2 fltk libpng qhull fontconfig libsamplerate qrupdate freetype libsndfile qt frei0r libsoxr readline fribidi libtasn1 rtmpdump gcc libtiff rubberband gd libtool ruby gdbm libunistring sdl2 gettext libvorbis shared-mime-info gflags libvpx sip ghostscript libxml2 snappy giflib libyaml speex gl2ps little-cms2 sphinx-doc glib lua sqlite glog metis suite-sparse glpk mpfr sundials gmp netpbm szip gnuplot nettle tbb gnutls node tesseract graphicsmagick numpy texinfo graphite2 octave theora harfbuzz open-mpi unbound hdf5 openblas veclibfort icu4c opencore-amr vim ilmbase opencv webp imagemagick openexr wfdb ipython openjpeg x264 isl openssl x265 jasper opus xvid jpeg p11-kit xz jupyter pandoc zeromq lame pango latex2rtf pcre
-
brew uninstall vim
:Uninstalling /usr/local/Cellar/vim/8.1.1550... (1,855 files, 31.6MB)
-
brew install ex-vi
:Updating Homebrew... ==> Auto-updated Homebrew! Updated 2 taps (homebrew/core and homebrew/cask). ==> New Formulae antibody cxxopts k3d k6 yapf ==> Updated Formulae ansible hadolint jhipster ==> Downloading https://homebrew.bintray.com/bottles/ex-vi-050325.mojave.bottle.tar.g ######################################################################## 100.0% ==> Pouring ex-vi-050325.mojave.bottle.tar.gz